/* ============================================================
   Frictionº — Marketing Website Styles
   Design tokens pulled from the iOS app's DesignSystem.swift
   ============================================================ */

:root {
  --primary-purple: rgb(139, 92, 246);
  --accent-purple: rgb(179, 128, 230);
  --accent-green: rgb(77, 230, 77);
  --bg-deep: rgb(13, 8, 38);
  --bg-deeper: rgb(5, 0, 20);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-bg: rgba(13, 8, 38, 0.6);
  --glass-bg-solid: rgba(13, 8, 38, 0.85);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary-purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 14px;
}
.skip-link:focus { top: 8px; }

/* ---- Canvas ---- */
#starry-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Container ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--card-border);
  transition: background var(--transition-fast);
}

.navbar.scrolled {
  background: var(--glass-bg-solid);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.nav-cta {
  background: var(--primary-purple);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-link.nav-cta:hover {
  background: rgb(120, 75, 230);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 720px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-purple);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 10vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  display: block;
  margin: 0 auto;
}

/* Stat animation block */
.hero-stats {
  margin-bottom: 40px;
}

.stat-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-height: 80px;
  perspective: 600px;
}

.stat-number {
  font-family: var(--font-body);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.5s ease;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
}

.stat-separator {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-tertiary);
}

.stat-period {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
}

.stat-display.final .stat-number,
.stat-display.final .stat-unit,
.stat-display.final .stat-period {
  color: var(--primary-purple);
}

.stat-display.flipping {
  animation: statFlip 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes statFlip {
  0%   { transform: rotateX(0deg);   opacity: 1; }
  38%  { transform: rotateX(90deg);  opacity: 0; }
  62%  { transform: rotateX(-90deg); opacity: 0; }
  100% { transform: rotateX(0deg);   opacity: 1; }
}

.stat-caption {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.stat-caption.visible {
  opacity: 1;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* CTAs */
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--bg-deep);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.btn-primary svg {
  flex-shrink: 0;
}

.hero-platform {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Hero two-column layout */
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  width: 100%;
  max-width: 1100px;
}

.hero-layout .hero-content {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.hero-mockup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup img {
  width: 300px;
  max-width: 100%;
  transform: rotate(3deg);
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.6));
  border-radius: 44px;
}

/* ============================================================
   CHALLENGES
   ============================================================ */
.challenges-grid {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
}

.challenge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 320px;
}

.challenge-mockup img {
  width: 280px;
  max-width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
  border-radius: 44px;
}

.challenge-info {
  text-align: center;
}

.challenge-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.challenge-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 64px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works .section-label {
  margin-bottom: 64px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.step-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-purple);
  opacity: 0.7;
}

.step-icon {
  color: var(--primary-purple);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.feature-highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(179, 128, 230, 0.06));
  border-color: rgba(139, 92, 246, 0.2);
}

.feature-highlight:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(179, 128, 230, 0.08));
}

.feature-icon {
  color: var(--primary-purple);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-4px);
}

.pricing-card.highlighted {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(179, 128, 230, 0.06));
  border-color: rgba(139, 92, 246, 0.3);
  position: relative;
}

.pricing-card.highlighted::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card.highlighted:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.pricing-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-tertiary);
}

.pricing-trial {
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 4px;
}

.pricing-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--primary-purple);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.pricing-cta:hover {
  transform: translateY(-2px);
}

.pricing-card .pricing-cta {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.pricing-card .pricing-cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pricing-card.highlighted .pricing-cta {
  background: var(--primary-purple);
  color: #fff;
  border: none;
}

.pricing-card.highlighted .pricing-cta:hover {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
  background: rgb(120, 75, 230);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand .brand {
  font-size: 24px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-platform {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.steps-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(7) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(8) { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(9) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(10) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(11) { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(12) { transition-delay: 0.15s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  /* Hero collapses to single column — mockup moves below CTA */
  .hero-layout {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .hero-layout .hero-content {
    text-align: center;
  }

  .hero-layout .hero-content .hero-logo img {
    margin: 0 auto 32px;
  }

  .hero-layout .hero-content .stat-display {
    justify-content: center;
  }

  .hero-layout .hero-content .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-layout .hero-content .hero-ctas {
    justify-content: center;
  }

  .hero-mockup {
    display: none;
  }

  /* Challenges stack on tablet */
  .challenges-grid {
    flex-direction: column;
    align-items: center;
    gap: 56px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-highlight {
    grid-column: span 2;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 20px;
  }

  .section {
    padding: 80px 0;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    flex-direction: column;
    background: rgba(13, 8, 38, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px 24px;
    gap: 8px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 18px;
    padding: 14px 16px;
  }

  .nav-link.nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 80px;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 64px);
  }

  .stat-display {
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-mockup img {
    width: 200px;
  }

  .challenge-mockup img {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-highlight {
    grid-column: span 1;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-label {
    font-size: clamp(28px, 7vw, 40px);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  background: var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-nav {
  border-bottom: 1px solid var(--card-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--glass-bg-solid);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100;
}

.legal-nav .brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  text-decoration: none;
}

.legal-back {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.legal-back:hover {
  color: var(--text-primary);
}

.legal-main {
  flex: 1;
  padding: 64px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-content .legal-meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content ol,
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--text-primary);
}

.legal-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.legal-footer a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

@media (max-width: 640px) {
  .legal-main {
    padding: 40px 0 60px;
  }

  .legal-content h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .legal-footer {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
