@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Deep Navy Primary */
  --background: 220 33% 98%;
  --foreground: 220 40% 13%;

  /* Cards - Slightly warm white */
  --card: 0 0% 100%;
  --card-foreground: 220 40% 13%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 40% 13%;

  /* Deep Navy Blue Primary */
  --primary: 220 50% 15%;
  --primary-foreground: 45 60% 92%;

  /* Charcoal Secondary */
  --secondary: 220 10% 25%;
  --secondary-foreground: 45 60% 95%;

  /* Muted - Soft grays */
  --muted: 220 15% 92%;
  --muted-foreground: 220 15% 45%;

  /* Gold Accent */
  --accent: 42 70% 50%;
  --accent-foreground: 220 50% 12%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 220 20% 88%;
  --input: 220 20% 88%;
  --ring: 42 70% 50%;

  --radius: 0.5rem;

  /* Custom Design Tokens */
  --gold: 42 70% 50%;
  --gold-light: 42 65% 60%;
  --gold-dark: 42 75% 40%;
  --navy: 220 50% 15%;
  --navy-light: 220 45% 25%;
  --charcoal: 220 10% 25%;
  --charcoal-light: 220 10% 35%;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(220 50% 12%) 0%, hsl(220 45% 20%) 50%, hsl(220 40% 25%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(42 70% 45%) 0%, hsl(42 75% 55%) 100%);
  --gradient-overlay: linear-gradient(180deg, hsla(220, 50%, 12%, 0.9) 0%, hsla(220, 50%, 15%, 0.85) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px hsla(220, 50%, 15%, 0.08);
  --shadow-md: 0 8px 24px -8px hsla(220, 50%, 15%, 0.12);
  --shadow-lg: 0 16px 48px -16px hsla(220, 50%, 15%, 0.15);
  --shadow-gold: 0 8px 32px -8px hsla(42, 70%, 50%, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
}

.container-legal {
  max-width: 80rem; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-legal {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-legal {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.text-gradient-gold {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: var(--gradient-gold);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-overlay {
  background: var(--gradient-overlay);
}

.shadow-gold {
  box-shadow: var(--shadow-gold);
}

.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background-color: hsl(var(--accent));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.gold-underline:hover::after {
  transform: scaleX(1);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay modifiers */
.animation-delay-100 { transition-delay: 100ms; }
.animation-delay-200 { transition-delay: 200ms; }
.animation-delay-300 { transition-delay: 300ms; }
.animation-delay-400 { transition-delay: 400ms; }
.animation-delay-500 { transition-delay: 500ms; }

/* Custom Details Accordion Styling */
details > summary::-webkit-details-marker {
  display: none;
}
details > summary {
  list-style: none;
}
details[open] summary svg {
  transform: rotate(90deg);
  color: hsl(var(--accent));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}
