/* Shadow AI — marketing site */

:root {
  /* Brand */
  --purple: #7C4DFF;
  --purple-light: #B388FF;
  --purple-label: #A78BFA;
  --purple-bg: rgba(130, 80, 255, 0.12);

  /* Dark */
  --dark: #0F0E13;
  --dark-2: #16141C;
  --dark-3: #1E1B26;
  --cream: #F5F1FA;
  --cream-2: #F5F3FA;

  /* Light */
  --bg-top: #F2F0F7;
  --bg-mid: #FAFAFA;
  --bg-bottom: #F5F3FA;

  /* Text */
  --ink: #1A1425;
  --ink-2: #3D2D5C;
  --ink-3: #6B5E80;
  --ink-4: #B0A8C0;
  --ink-5: #C0B8D0;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.75);
  --line: rgba(0, 0, 0, 0.06);
  --line-dark: rgba(255, 255, 255, 0.08);

  /* Shadows — warm dark */
  --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.06);
  --shadow-md: 0 6px 24px rgba(26, 23, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 23, 20, 0.14);
  --shadow-xl: 0 40px 100px rgba(26, 23, 20, 0.22);

  --serif: 'Instrument Serif', 'EB Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-mid); }
body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'ss01';
  line-height: 1.5;
}

::selection { background: var(--purple); color: white; }

img, svg { display: block; max-width: 100%; }

/* Type helpers */
.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-label);
}
.eyebrow.dark { color: var(--purple-light); }
.eyebrow.muted { color: var(--ink-3); letter-spacing: 0.2em; }

/* Layout */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .shell { padding: 0 20px; } }

section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease-out, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-light {
  background: var(--cream);
  color: var(--dark);
}
.btn-light:hover { background: #fff; }

.btn-dark {
  background: var(--dark);
  color: var(--cream);
}
.btn-dark:hover { background: #1d1925; }

.btn-purple {
  background: linear-gradient(180deg, #8B5CF6 0%, #7C4DFF 55%, #6C3CE0 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-purple:hover { box-shadow: 0 14px 40px rgba(124, 77, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 241, 250, 0.2);
}
.btn-ghost:hover { background: rgba(245, 241, 250, 0.06); }

.btn-link {
  color: var(--purple);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { color: #6C3CE0; }

.btn-app {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--dark);
  padding: 12px 20px 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--sans);
  transition: transform 0.15s, background 0.2s;
}
.btn-app:hover { background: #fff; }
.btn-app:active { transform: translateY(1px); }
.btn-app .small { font-size: 10.5px; letter-spacing: 0.04em; opacity: 0.7; line-height: 1; }
.btn-app .big { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.1; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(242, 240, 247, 0.78);
  border-bottom: 1px solid rgba(26, 20, 37, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  max-width: 1200px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-brand img.brand-logo { height: 56px; width: auto; display: block; }
.footer .nav-brand img.brand-logo { height: 64px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-3);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta,
.nav-cta:link,
.nav-cta:visited,
.nav-cta:hover,
.nav-cta:active {
  padding: 9px 14px 9px 12px;
  font-size: 14px;
  border-radius: 10px;
  background: var(--dark);
  color: #ffffff;
  gap: 7px;
}
.nav-cta svg { width: 14px; height: 16px; }
.nav-cta svg path { fill: #ffffff; }
@media (max-width: 720px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links .hide-sm { display: none; }
}

/* Section spacing */
.s-pad { padding: 120px 0; }
.s-pad-sm { padding: 80px 0; }
@media (max-width: 720px) {
  .s-pad { padding: 80px 0; }
  .s-pad-sm { padding: 56px 0; }
}

/* Dark section */
.dark-section {
  background: var(--dark);
  color: var(--cream);
}
.dark-section .ink-2 { color: rgba(245, 241, 250, 0.66); }

/* Light section */
.light-section {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
  color: var(--ink);
}

/* HERO ====================================================== */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(124, 77, 255, 0.18) 0%, transparent 60%),
    radial-gradient(50% 40% at 90% 80%, rgba(179, 136, 255, 0.10) 0%, transparent 70%);
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--cream);
}
.hero h1 em {
  font-style: italic;
  color: var(--purple-light);
  font-weight: 400;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(245, 241, 250, 0.68);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 18px; align-items: center;
  font-size: 13px; color: rgba(245, 241, 250, 0.45);
  flex-wrap: wrap;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(245,241,250,0.3); }

/* phone teaser column */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-halo {
  position: absolute;
  width: 124%; height: 124%;
  background: radial-gradient(circle, rgba(124,77,255,0.28) 0%, transparent 62%);
  filter: blur(48px);
  z-index: 0;
}

/* SECTION HEADERS =========================================== */
.sec-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-top: 14px;
  margin-bottom: 18px;
}
.sec-head h2 em { font-style: italic; color: var(--purple); }
.dark-section .sec-head h2 em { color: var(--purple-light); }
.sec-head p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 580px;
}
.sec-head.center p { margin-left: auto; margin-right: auto; }
.dark-section .sec-head p { color: rgba(245, 241, 250, 0.6); }

/* FEATURES =================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 720px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: rgba(255, 255, 255, 0.65);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-height: 280px;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--purple-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  margin-bottom: 8px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.feature h3 em { font-style: italic; color: var(--purple); }
.feature p {
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.55;
}

/* HOW IT WORKS =============================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

.step-list { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.3s ease;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--purple);
  padding-top: 4px;
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
}
.step.active .step-num { opacity: 1; }
.step h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--ink);
}
.step h4 em { font-style: italic; color: var(--purple); }
.step p {
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s, margin-top 0.3s;
}
.step.active p { max-height: 120px; opacity: 1; margin-top: 4px; }
.step.active { padding: 28px 0; }

.step-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

/* ARCHETYPES ================================================ */
.arch-section { background: var(--dark); color: var(--cream); }
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 720px) { .arch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .arch-grid { grid-template-columns: 1fr; } }

.arch {
  background: var(--dark);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
}
.arch:hover { background: #16141C; }
.arch-glyph {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  position: relative;
}
.arch-glyph-portrait {
  width: auto; height: 120px;
  border-radius: 0;
  margin: -8px 0 -4px -8px;
  justify-content: flex-start;
}
.arch-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.arch-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(245,241,250,0.3);
  letter-spacing: 0.04em;
}
.arch-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-label);
}
.arch p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245, 241, 250, 0.6);
}

/* PHONE inline ============================================== */
/* (Screen mockups now render as real PNG screenshots — see phone.jsx) */

/* FAQ ======================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 28px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--purple); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--purple);
  border-radius: 1px;
}
.faq-icon::before { width: 16px; height: 1.5px; top: 11px; left: 4px; }
.faq-icon::after { width: 1.5px; height: 16px; top: 4px; left: 11px; transition: transform 0.3s; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 28px;
}

/* PRICING TEASER + FOOTER CTA =============================== */
.cta-section {
  background: var(--dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 100%, rgba(124,77,255,0.22) 0%, transparent 60%);
}
.cta-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.cta-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 18px 0 24px;
}
.cta-inner h2 em { font-style: italic; color: var(--purple-light); }
.cta-inner p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245,241,250,0.65);
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta-pricing {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 32px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid rgba(245,241,250,0.12);
  background: rgba(245,241,250,0.04);
  font-size: 14px;
  color: rgba(245,241,250,0.6);
}
.cta-pricing strong { color: var(--cream); font-weight: 600; }

/* Footer ===================================================== */
.footer {
  background: var(--dark);
  color: rgba(245,241,250,0.5);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer .nav-brand { color: var(--cream); }
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-brand p { color: rgba(245,241,250,0.45); font-size: 14px; line-height: 1.55; max-width: 280px; }
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,250,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(245,241,250,0.7);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(245,241,250,0.35);
  font-size: 13px;
}

/* Editorial pull-quote */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}
.quote .author {
  display: block;
  margin-top: 28px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

/* Hero variants ============================================== */
/* Variant: light editorial */
.hero.variant-light {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 60%, var(--bg-bottom) 100%);
  color: var(--ink);
}
.hero.variant-light h1 { color: var(--ink); }
.hero.variant-light h1 em { color: var(--purple); }
.hero.variant-light p.lede { color: var(--ink-3); }
.hero.variant-light .hero-glow { opacity: 0.4; }
.hero.variant-light .hero-meta { color: var(--ink-4); }
.hero.variant-light .hero-meta .dot { background: var(--ink-5); }
.hero.variant-light .btn-light { background: var(--dark); color: var(--cream); }
.hero.variant-light .btn-light:hover { background: #1d1925; }
.hero.variant-light .btn-ghost { color: var(--ink); border-color: rgba(0,0,0,0.12); }
.hero.variant-light .btn-ghost:hover { background: rgba(0,0,0,0.04); }

/* Variant: mystical center */
.hero.variant-center .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 60px;
}
.hero.variant-center .hero-text {
  max-width: 820px;
  margin: 0 auto;
}
.hero.variant-center .hero-ctas { justify-content: center; }
.hero.variant-center p.lede { margin-left: auto; margin-right: auto; }
.hero.variant-center .hero-meta { justify-content: center; }
.hero.variant-center .hero-orb {
  margin: 0 auto;
  width: 260px; height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--purple-light) 0%, var(--purple) 35%, #2A1B5A 70%, #0F0E13 100%);
  box-shadow:
    inset 0 -20px 40px rgba(0,0,0,0.5),
    0 0 80px rgba(124,77,255,0.4),
    0 0 200px rgba(124,77,255,0.25);
  position: relative;
}
.hero.variant-center .hero-orb::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(179,136,255,0.18);
}
.hero.variant-center .hero-phone-wrap { display: none; }

/* utility */
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 64px; }

/* Fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease-out backwards; }
.d-1 { animation-delay: 0.05s; }
.d-2 { animation-delay: 0.15s; }
.d-3 { animation-delay: 0.25s; }
.d-4 { animation-delay: 0.35s; }
.d-5 { animation-delay: 0.45s; }

/* Marquee separator */
.divider-quote { padding: 100px 0; background: #FAFAFA; }

/* phone shell positioning */
.phone-wrap { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   LEGAL / LONG-FORM READER (privacy.html, terms.html, support.html)
   ═══════════════════════════════════════════════════════════════ */

.legal-page {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
  color: var(--ink);
  min-height: 100vh;
}

/* Static nav (no React) */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(242, 240, 247, 0.78);
  border-bottom: 1px solid rgba(26, 20, 37, 0.06);
}
.legal-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  max-width: 1200px; margin: 0 auto;
}

/* Header */
.legal-header {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--line);
}
.legal-header .shell { max-width: 920px; }
.legal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-label);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.legal-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--purple);
}
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--ink);
}
.legal-title em { font-style: italic; color: var(--purple); }
.legal-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.legal-lede {
  margin-top: 36px;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Body layout: TOC + content */
.legal-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
@media (max-width: 960px) {
  .legal-body { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px 80px; }
}

.legal-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 13px;
}
.legal-toc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.legal-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  display: flex; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.legal-toc li:last-child { border-bottom: 1px solid var(--line); }
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 1px;
}
.legal-toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.15s;
}
.legal-toc a:hover { color: var(--purple); }
@media (max-width: 960px) {
  .legal-toc { position: static; }
}

/* Content */
.legal-content {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 64px 0 20px;
  padding-top: 24px;
  scroll-margin-top: 100px;
  display: flex; gap: 20px; align-items: baseline;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; }
.legal-content h2 em { font-style: italic; color: var(--purple); }
.legal-content h2 .legal-h-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--purple);
  flex-shrink: 0;
  width: 36px;
  letter-spacing: 0.04em;
}
.legal-content h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 36px 0 14px;
}
.legal-content p { margin: 14px 0; }
.legal-content p strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-content a:hover { color: #6C3CE0; }
.legal-content ul { margin: 14px 0 14px 0; padding-left: 0; list-style: none; }
.legal-content ul li {
  position: relative;
  padding: 4px 0 4px 22px;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 1px;
  background: var(--purple);
}
.legal-content ul li strong { color: var(--ink); font-weight: 600; }

/* Pull-quote callout */
.legal-callout {
  margin: 32px 0 40px;
  padding: 32px 36px;
  background: rgba(124, 77, 255, 0.06);
  border-left: 2px solid var(--purple);
  border-radius: 0 16px 16px 0;
  position: relative;
}
.legal-callout-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.legal-callout-body {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-callout-body em { color: var(--purple); }

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 14.5px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.legal-table th {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(124, 77, 255, 0.04);
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  width: 200px;
  font-weight: 400;
}
.legal-table td p { margin: 0; }
@media (max-width: 720px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .legal-table tr:last-child { border-bottom: none; }
  .legal-table td { padding: 6px 0; border: none; }
  .legal-table td:first-child { width: auto; padding-bottom: 8px; }
  .legal-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 4px;
  }
}

/* Contact card at end */
.legal-contact {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
}
.legal-contact strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.legal-contact .small { color: var(--ink-3); font-size: 14px; }
.legal-contact a { font-weight: 500; }

/* Back to top / nav */
.legal-aux {
  margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.legal-aux a { color: var(--purple); text-decoration: none; font-weight: 500; }
.legal-aux a:hover { color: #6C3CE0; }

/* ── SUPPORT PAGE ────────────────────────────────────────────── */

/* Hero contact block — right side of the header */
.legal-header .support-contact {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.legal-header .support-contact .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--purple);
  border-right: 1px solid var(--line);
  padding-right: 14px;
}
.legal-header .support-contact a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.legal-header .support-contact a:hover { color: var(--purple); }

/* Crisis section — large attention-grabbing block before content */
.crisis-section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 32px;
}
.crisis-section-inner {
  margin: 60px 0 0;
  padding: 40px 44px;
  background: #0F0E13;
  color: var(--cream);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.14);
}
.crisis-section-inner::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 90% 0%, rgba(124,77,255,0.18) 0%, transparent 65%);
}
.crisis-label {
  position: relative;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}
.crisis-title {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.crisis-title em { font-style: italic; color: var(--purple-light); }
.crisis-lede {
  position: relative;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245,241,250,0.72);
  max-width: 640px;
  margin-bottom: 28px;
}
.crisis-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .crisis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .crisis-grid { grid-template-columns: 1fr; } }
.crisis-card {
  padding: 16px 18px;
  background: rgba(245, 241, 250, 0.04);
  border: 1px solid rgba(245, 241, 250, 0.08);
  border-radius: 14px;
}
.crisis-card .region {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(179, 136, 255, 0.85);
  margin-bottom: 6px;
}
.crisis-card .number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.crisis-card .note {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 241, 250, 0.6);
}
.crisis-card a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(179,136,255,0.4);
}
.crisis-footnote {
  position: relative;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(245, 241, 250, 0.5);
  font-style: italic;
  font-family: var(--serif);
}

/* FAQ-style Q&A — questions look like editorial sub-heads */
.qa-list { margin: 8px 0 20px; display: flex; flex-direction: column; gap: 4px; }
.qa-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.qa-item:last-child { border-bottom: 1px solid var(--line); }
.qa-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 10px;
}
.qa-q em { font-style: italic; color: var(--purple); }
.qa-a { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.qa-a p { margin: 10px 0; }
.qa-a p:first-child { margin-top: 0; }
.qa-a p:last-child { margin-bottom: 0; }
.qa-a ol, .qa-a ul { margin: 10px 0; }
.qa-a ol { padding-left: 22px; }
.qa-a ol li { padding: 3px 0; }
.qa-a ul { padding-left: 0; list-style: none; }
.qa-a ul li {
  position: relative;
  padding: 4px 0 4px 22px;
}
.qa-a ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 1px;
  background: var(--purple);
}
.qa-a strong { color: var(--ink); font-weight: 600; }
