/* Shared styles for About / Privacy / Terms / Disclaimer. Rules between the markers are copied from index.html so the
   pages match the site. Regenerate with build_legal.py rather than editing by hand. */
    :root {
      --bg: #fafaf7;
      --bg-2: #f4f3ee;
      --bg-3: #f0efe9;
      --surface: #ffffff;
      --surface-2: #f6f5f0;
      --line: #e8e6df;
      --line-2: #d9d6cd;
      --text: #0a0a0a;
      --muted: #5e5b54;
      --muted-2: #8e8b82;
      --green: #2E7D32;
      --green-dk: #1B5E20;
      --green-lt: #43A047;
      --green-bg: rgba(46, 125, 50, .07);
      --gold: #A07800;
      --red: #C62828;
      --red-lt: #EF5350;
      --blue: #1565C0;
      --orange: #E65100;
      --shadow-sm: 0 2px 12px rgba(20, 18, 12, .06);
      --shadow-md: 0 6px 32px rgba(20, 18, 12, .09);
      --shadow-lg: 0 20px 64px rgba(20, 18, 12, .11);
      --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0L0 0 0 48' fill='none' stroke='rgba(0,0,0,0.055)' stroke-width='1'/%3E%3C/svg%3E");
      --radius: 16px;
      --radius-sm: 11px;
      --pill: 999px;
      --font-display: 'Space Grotesk', sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --maxw: 1240px;
      --pad: clamp(20px, 4vw, 40px);
      --ease: cubic-bezier(.16,.8,.24,1);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }

    h1, h2, h3, h4, .nav-logo, .footer-logo, .hero h1, .section-title, .layer-bg-num, .stat-num, .mv, .v, .stats-quote blockquote, .showcase-h3, .doc-badge-title { font-family: var(--font-display); letter-spacing: -0.02em; }
    .eyebrow, .hero-pill, .crit-badge, .v-label, .v-time, .ml, .gold-label, .ccard-label, .layer-step, .impact-tbl th, .ib, .fc h4, .showcase-tag, .browser-url { font-family: var(--font-mono); }

    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
    ::selection { background: var(--green); color: #fff; }
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg-2); }
    ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

    /* LAYOUT */
    .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: var(--pill); font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; transition: all .2s ease; }
    .btn-primary { background: var(--green); color: #fff; }
    .btn-primary:hover { background: var(--green-dk); transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 24px rgba(46, 125, 50, .3); }
    .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
    .btn-ghost:hover { border-color: var(--text); background: rgba(0,0,0,.03); }
    .btn-ghost-green { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
    .btn-ghost-green:hover { background: var(--green-bg); }
    .btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
    .btn-xl { height: 58px; padding: 0 38px; font-size: 17px; font-weight: 800; }

    /* NAV */
    .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,250,247,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
    .nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(20,18,12,.06); }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
    .nav-logo { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; min-width: 0; }
    .nav-logo-icon { height: 48px; width: auto; display: block; flex-shrink: 0; }
    .nav-logo .s, .nav-logo .a { white-space: nowrap; }
    .nav-logo .s { color: var(--text); }
    .nav-logo .a { color: var(--green); }
    .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-lt); animation: pdot 2s ease-in-out infinite; }
    @keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.7)} }
    .nav-links { display: flex; gap: 26px; list-style: none; }
    .nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; white-space: nowrap; }
    .nav-links a:hover { color: var(--text); }
    .nav-cta { display: flex; gap: 10px; flex-shrink: 0; }
    .nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
    .nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; }
    .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); transition: transform .25s; }
    .nav-toggle span::before { top: -5px; }
    .nav-toggle span::after { top: 5px; }
    .mob-menu { display: none; position: fixed; top: 80px; left: 0; right: 0; background: rgba(250,250,247,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 24px var(--pad); z-index: 99; flex-direction: column; gap: 16px; transform: translateY(-110%); transition: transform .3s ease; }
    .mob-menu.open { transform: none; }
    .mob-menu a { font-size: 17px; font-weight: 500; color: var(--text); padding: 8px 0; border-bottom: 1px solid var(--line); }
    .mob-menu .m-cta { color: var(--green); font-weight: 700; }
    @media (max-width: 1180px) { .nav-links { display: none; } .nav-toggle { display: inline-flex; } .mob-menu { display: flex; } }
    @media (max-width: 640px) {
      /* Not enough room for logo + CTA + hamburger together on phones -
         the mobile menu already has its own "Join Waitlist" link (.m-cta) */
      .nav-cta { display: none; }
    }
    @media (max-width: 480px) {
      .nav-inner { height: 68px; }
      .nav-logo-icon { height: 38px; }
      .nav-logo { font-size: 18px; gap: 6px; }
      .mob-menu { top: 68px; }
    }
    footer { background: var(--bg-3); border-top: 1px solid var(--line-2); padding: 56px 0 28px; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
    .footer-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
    .footer-logo-img { height: 160px; width: auto; display: block; margin-left: -14px; }
    .footer-logo .s { color: var(--text); }
    .footer-logo .a { color: var(--green); }
    .footer-tagline { font-size: 14px; font-weight: 400; color: var(--muted-2); line-height: 1.6; }
    .fc h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-mono); }
    .fc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
    .fc ul a { font-size: 14px; font-weight: 400; color: var(--muted); transition: color .2s; }
    .fc ul a:hover { color: var(--text); }
    .footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
    .disclaimer { font-size: 13px; color: var(--muted-2); line-height: 1.7; max-width: 820px; margin: 0 auto; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-logo-img { height: 120px; } }

/* ---------- legal page layout ---------- */
.legal-hero { padding: 128px 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.legal-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; max-width: 820px; }
.legal-lead { margin-top: 16px; max-width: 720px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.legal-meta { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); font-family: var(--font-mono); }
.legal-wrap { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 64px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: 104px; font-size: 14px; }
.toc h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line-2); padding-left: 14px; }
.toc a { color: var(--muted); transition: color .2s; }
.toc a:hover { color: var(--green); }
.legal-body h2 { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 44px 0 12px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.legal-body p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.legal-body ul, .legal-body ol.plain { margin: 0 0 16px 22px; color: var(--muted); font-size: 16.5px; }
.legal-body li { margin-bottom: 8px; padding-left: 4px; }
.legal-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a.btn { text-decoration: none; }
.legal-body a.btn-primary, .legal-body a.btn-primary:hover { color: #fff; }
.legal-body strong { color: var(--text); font-weight: 600; }
.callout { background: var(--green-bg); border: 1px solid rgba(46, 125, 50, .25); border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0 24px; color: var(--text); font-size: 16px; }
.callout p { color: var(--text); margin: 0; }
.callout.warn { background: rgba(230, 81, 0, .06); border-color: rgba(230, 81, 0, .28); }
.data-tbl { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.data-tbl th, .data-tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-tbl th { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); background: var(--bg-2); }
.data-tbl td { color: var(--muted); }
.data-tbl td:first-child { color: var(--text); font-weight: 600; width: 30%; }
.legal-cta { margin-top: 36px; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.legal-cta p { margin-bottom: 14px; }
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .toc { position: static; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; border-left: 0; padding-left: 0; }
  .legal-hero { padding-top: 104px; }
}
