/* ==========================================
   STAMPED - Modern Travel Passport App
   Design System & Styles
   ========================================== */

/* CSS Variables */
:root {
  /* Primary Colors - Dark Blue Theme */
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;

  /* Accent Colors */
  --accent: #EAB308;
  --accent-dark: #CA8A04;

  /* App Background Colors */
  --bg-primary: #0D1321;
  --bg-card: #152033;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --success: #10B981;
  --error: #ef4444;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-primary);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 800px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgb(59 130 246 / 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgb(59 130 246 / 0.5);
}

.btn--secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--primary);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: var(--space-xl) var(--space-2xl);
    gap: var(--space-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }

  .nav__links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu-btn {
    display: flex;
  }

  .nav__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Hero Section */
.hero {
  padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-light);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(234, 179, 8, 0.1) 100%);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__phone {
  position: relative;
  width: 220px;
  height: 440px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero__phone--left {
  transform: rotate(-6deg) translateX(15px);
  z-index: 1;
}

.hero__phone--right {
  transform: rotate(6deg) translateX(-15px);
  z-index: 2;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero__floating-stamps {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.floating-stamp {
  position: absolute;
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, var(--white) 0%, var(--gray-100) 100%);
  border-radius: 16px;
  border: 2px solid var(--white);
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.2),
    0 5px 15px -3px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.floating-stamp img {
  width: 70%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.floating-stamp:nth-child(1) {
  top: 15%;
  left: -10px;
  animation-delay: 0s;
}

.floating-stamp:nth-child(2) {
  top: 20%;
  right: -10px;
  animation-delay: 0.5s;
}

.floating-stamp:nth-child(3) {
  bottom: 25%;
  left: -5px;
  animation-delay: 1s;
}

.floating-stamp:nth-child(4) {
  bottom: 15%;
  right: -5px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 968px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__phone {
    width: 180px;
    height: 360px;
    border-radius: 30px;
  }

  .hero__phone-screen {
    border-radius: 24px;
  }

  .floating-stamp {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .floating-stamp:nth-child(1) {
    top: 5%;
    left: 5%;
  }

  .floating-stamp:nth-child(2) {
    top: 10%;
    right: 5%;
  }

  .floating-stamp:nth-child(3) {
    bottom: 20%;
    left: 0;
  }

  .floating-stamp:nth-child(4) {
    bottom: 10%;
    right: 0;
  }
}

@media (max-width: 640px) {
  .hero__phone {
    width: 150px;
    height: 300px;
    border-radius: 26px;
    padding: 8px;
  }

  .hero__phone-screen {
    border-radius: 20px;
  }

  .hero__phone--left {
    transform: rotate(-6deg) translateX(10px);
  }

  .hero__phone--right {
    transform: rotate(6deg) translateX(-10px);
  }

  .floating-stamp {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    border-radius: 12px;
  }

  /* Top stamps - scattered above phones */
  .floating-stamp:nth-child(1) {
    top: -20px;
    left: 8%;
    right: auto;
  }

  .floating-stamp:nth-child(2) {
    top: -25px;
    right: 3%;
    left: auto;
  }

  /* Bottom stamps - scattered below phones */
  .floating-stamp:nth-child(3) {
    bottom: -10px;
    left: 18%;
    right: auto;
  }

  .floating-stamp:nth-child(4) {
    bottom: -25px;
    right: 5%;
    left: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .store-badge--apple img {
    height: 60px;
    width: 200px;
    transform: scale(1.12);
  }

  .hero__actions .store-badge--google img {
    height: 60px;
    width: 200px;
  }
}

/* Features Section */
.features {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header__label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__description {
  font-size: 1.125rem;
  color: var(--gray-500);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(234, 179, 8, 0.1) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-card__description {
  color: var(--gray-500);
  margin-bottom: 0;
}

@media (max-width: 968px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: var(--gray-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.3;
}

.step:last-child::after {
  display: none;
}

.step__number {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.step:hover .step__number {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.1);
}

.step__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.step__description {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

@media (max-width: 968px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Explore Section */
.explore {
  padding: var(--space-4xl) 0;
}

.explore__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.explore__content {
  max-width: 520px;
}

.explore__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.explore__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
}

.explore__item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
}

.explore__item-icon.premium-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.explore__item-icon.premium-icon svg {
  color: var(--white);
}

.explore__visual {
  display: flex;
  justify-content: center;
}

.privacy-shield {
  width: 280px;
  height: 320px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.privacy-shield__icon {
  font-size: 5rem;
  margin-bottom: var(--space-lg);
}

.privacy-shield__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.map-image {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* Phone Mockup for Showcase Sections */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.phone-mockup--small {
  width: 220px;
  height: 440px;
  border-radius: 36px;
  padding: 10px;
}

.phone-mockup--small .phone-mockup__screen {
  border-radius: 28px;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg-primary);
}

.phone-mockup__screen .phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Trip Page Image */
.trip-image {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* Stamping Animation Image */
.stamping-image {
  max-width: 360px;
  width: 100%;
  height: auto;
}

/* Reversed container for alternating layouts */
.explore__container--reverse {
  direction: rtl;
}

.explore__container--reverse > * {
  direction: ltr;
}

/* Trip and Stamping Section Backgrounds */
.trip-section {
  background: var(--gray-50);
}

.stamping-section {
  background: var(--white);
}

@media (max-width: 968px) {
  .explore__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .explore__container--reverse {
    direction: ltr;
  }

  .explore__content {
    max-width: 100%;
  }

  .explore__item {
    text-align: left;
  }

  .explore__visual {
    order: -1;
  }

  .map-image {
    max-width: 300px;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
    border-radius: 38px;
    padding: 10px;
  }

  .phone-mockup--small {
    width: 200px;
    height: 400px;
    border-radius: 32px;
  }

  .phone-mockup__screen {
    border-radius: 30px;
  }

  .trip-image {
    max-width: 230px;
  }

  .stamping-image {
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 32px;
    padding: 8px;
  }

  .phone-mockup--small {
    width: 160px;
    height: 320px;
    border-radius: 28px;
  }

  .phone-mockup__screen {
    border-radius: 26px;
  }

  .trip-image {
    max-width: 200px;
  }

  .stamping-image {
    max-width: 250px;
  }
}

/* CTA Section */
.cta {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-card) 100%);
}

.cta__container {
  text-align: center;
}

.cta__title {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta__description {
  color: var(--gray-400);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

.cta__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: all var(--transition-base);
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  height: 52px;
  width: 175px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .store-badge--apple img {
    height: 60px;
    width: 200px;
    transform: scale(1.12);
  }

  .store-badge--google img {
    height: 60px;
    width: 200px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-primary);
  color: var(--gray-400);
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__description {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer__column-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: 0.875rem;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 968px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__bottom {
    justify-content: center;
  }
}

/* Legal Pages */
.legal-page {
  padding: calc(72px + var(--space-3xl)) 0 var(--space-4xl);
}

.legal-page__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--gray-200);
}

.legal-page__title {
  margin-bottom: var(--space-md);
}

.legal-page__updated {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.legal-page__content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page__content h2 {
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-lg);
}

.legal-page__content h3 {
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-md);
}

.legal-page__content p {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.legal-page__content ul,
.legal-page__content ol {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-page__content ul {
  list-style: disc;
}

.legal-page__content ol {
  list-style: decimal;
}

.legal-page__content li {
  margin-bottom: var(--space-sm);
}

.legal-page__content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-page__content a:hover {
  color: var(--primary-dark);
}

.legal-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.9375rem;
}

.legal-page__content th,
.legal-page__content td {
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  text-align: left;
}

.legal-page__content th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.legal-page__content td {
  color: var(--gray-600);
}

.highlight-box {
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
