/* ============================================
   Vio AI Landing Page — Styles
   Design System: Translated from Swift DS tokens
   ============================================ */

/* === Design Tokens (CSS Custom Properties) === */
:root {
  /* Brand Colors */
  --color-brand: #EFFE18;
  --color-brand-dark: #D4E000;
  --color-accent: #f52f83;
  --color-accent-dark: #E8156F;
  --color-accent-blue: #0093FF;

  /* Base Colors */
  --color-black: #0A0A0F;
  --color-white: #FFFFFF;
  --color-fresh-green: #00F96C;
  --color-gold: #FFD700;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-on-brand: #0A0A0F;
  --text-on-accent: #FFFFFF;

  /* Backgrounds */
  --bg-primary: #0A0A0F;
  --bg-card: #141418;
  --bg-elevated: #1C1C22;
  --bg-glass: rgba(20, 20, 24, 0.8);
  --bg-pink-tinted: rgba(237, 21, 114, 0.08);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(245, 47, 131, 0.4);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --font-size-hero: clamp(2.5rem, 5vw, 4rem);
  --font-size-title: clamp(1.75rem, 3vw, 2.5rem);
  --font-size-headline: clamp(1.25rem, 2vw, 1.5rem);
  --font-size-subheadline: clamp(1.05rem, 1.5vw, 1.2rem);
  --font-size-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --font-size-caption: 0.8125rem;
  --font-size-footnote: 0.75rem;
  --font-size-badge: 0.625rem;

  /* Spacing (4pt grid) */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 2.5rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* === Utility === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

.section {
  padding: var(--space-4xl) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-5xl) 0;
  }
}

.section-title {
  font-size: var(--font-size-title);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-gradient-text {
  background: linear-gradient(135deg, var(--color-accent), #FF2D7A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-dark), #FF2D7A);
  color: var(--text-on-accent);
  box-shadow: 0 0 20px rgba(245, 47, 131, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(245, 47, 131, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-brand {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: var(--text-on-brand);
  box-shadow: 0 0 20px rgba(239, 254, 24, 0.2);
}

.btn-brand:hover {
  box-shadow: 0 0 30px rgba(239, 254, 24, 0.35);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-subheadline);
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-brand-text {
  font-size: var(--font-size-headline);
  font-weight: 800;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: none;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-xl) var(--space-md);
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-secondary);
  font-size: var(--font-size-subheadline);
  font-weight: 500;
  padding: var(--space-xs) 0;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(72px + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237, 21, 114, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-headline);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2xl);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-phone {
  position: relative;
}

.hero-phone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(237, 21, 114, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero .container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-content {
    flex: 1;
  }

  .hero-subtitle {
    margin-left: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-phone {
    flex-shrink: 0;
  }
}

/* === Phone Frame === */
.phone-frame {
  background: var(--color-black);
  border-radius: 2.5rem;
  padding: 0.6rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(237, 21, 114, 0.08);
  max-width: 260px;
  margin: 0 auto;
  position: relative;
}

.phone-screen {
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 2600 / 5284;
  position: relative;
  background: var(--bg-elevated);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screenshot Placeholder Fallback */
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  border: 2px dashed var(--border-subtle);
  border-radius: 2rem;
  text-align: center;
  padding: var(--space-xl);
  gap: var(--space-sm);
}

.placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.placeholder-label {
  font-size: var(--font-size-headline);
  font-weight: 700;
  color: var(--text-secondary);
}

.placeholder-hint {
  font-size: var(--font-size-caption);
  color: var(--text-tertiary);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .phone-frame {
    max-width: 280px;
  }
}

/* === Trust Bar === */
.trust-bar {
  padding: var(--space-xl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.trust-label {
  font-size: var(--font-size-caption);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logos span {
  font-size: var(--font-size-headline);
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* === How It Works === */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
}

.step-number {
  font-size: var(--font-size-title);
  font-weight: 800;
  color: var(--color-brand);
  margin-bottom: var(--space-md);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-pink-tinted);
  border-radius: var(--radius-lg);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.step-title {
  font-size: var(--font-size-headline);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Step connector arrows (desktop only) */
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid var(--border-subtle);
  }
}

/* === Screenshots Showcase === */
.screenshots {
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(237, 21, 114, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.screenshot-item {
  text-align: center;
}

@media (min-width: 768px) {
  .screenshot-item:first-child .phone-frame {
    transform: rotate(-3deg);
  }

  .screenshot-item:last-child .phone-frame {
    transform: rotate(3deg);
  }

  .screenshot-item:first-child .phone-frame:hover,
  .screenshot-item:last-child .phone-frame:hover {
    transform: rotate(0deg);
  }
}

.phone-frame {
  transition: transform 0.4s ease;
}

.screenshot-label {
  margin-top: var(--space-xl);
}

.screenshot-label h3 {
  font-size: var(--font-size-subheadline);
  font-weight: 700;
  margin-bottom: var(--space-xxs);
}

.screenshot-label p {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(245, 47, 131, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-pink-tinted);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon--brand {
  background: rgba(239, 254, 24, 0.1);
}

.feature-icon--brand svg {
  color: var(--color-brand);
}

.feature-icon--accent svg {
  color: var(--color-accent);
}

.feature-icon--green {
  background: rgba(0, 249, 108, 0.1);
}

.feature-icon--green svg {
  color: var(--color-fresh-green);
}

.feature-icon--blue {
  background: rgba(0, 147, 255, 0.1);
}

.feature-icon--blue svg {
  color: var(--color-accent-blue);
}

.feature-title {
  font-size: var(--font-size-headline);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
}

.pricing-card--premium {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(245, 47, 131, 0.1);
}

@media (min-width: 768px) {
  .pricing-card--premium {
    transform: scale(1.04);
  }
}

.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent-dark), #FF2D7A);
  color: var(--text-on-accent);
  font-size: var(--font-size-badge);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xxs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.pricing-name {
  font-size: var(--font-size-headline);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pricing-price {
  font-size: var(--font-size-title);
  font-weight: 800;
  margin-bottom: var(--space-xxs);
}

.pricing-period {
  font-size: var(--font-size-caption);
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.pricing-feature .check {
  color: var(--color-fresh-green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-feature .dash {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(237, 21, 114, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--font-size-title);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: var(--font-size-headline);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  text-align: left;
}

.store-btn-label {
  font-size: var(--font-size-footnote);
  color: var(--text-tertiary);
}

.store-btn-name {
  font-size: var(--font-size-subheadline);
  font-weight: 600;
}

/* === Footer === */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand-header img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
}

.footer-brand-header span {
  font-size: var(--font-size-subheadline);
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  max-width: 300px;
}

.footer-contact a {
  color: var(--color-brand);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-nav h4 {
  font-size: var(--font-size-subheadline);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

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

.footer-nav a {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: var(--font-size-footnote);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--text-tertiary);
  font-size: var(--font-size-footnote);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* === Scroll Animations === */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

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

.legal-page .section-title {
  margin-bottom: var(--space-xs);
}

.legal-meta {
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--font-size-caption);
  margin-bottom: var(--space-3xl);
}

.legal-content h2 {
  font-size: var(--font-size-headline);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--font-size-subheadline);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

.legal-content li {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.legal-content a:hover {
  opacity: 0.8;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-2xl) 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-body);
  overflow-x: auto;
  display: block;
}

.legal-content thead th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-card);
  white-space: nowrap;
}

.legal-content tbody td {
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-card);
  vertical-align: top;
}

.legal-content tbody tr:nth-child(even) {
  background: var(--bg-card);
}

.legal-content em {
  color: var(--text-tertiary);
  font-style: italic;
}
