* { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: #f3ede1; color: #1a1410;
    font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

  :root {
    --paper: #f3ede1;
    --paper-light: #f8f2e6;
    --paper-warm: #ede5d3;
    --paper-card: #fffaf0;
    --ink: #1a1410;
    --ink-soft: #3d342a;
    --ink-mute: #5a4f42;
    --ink-faint: #7a6a58;
    --line: rgba(26,20,16,.18);
    --line-soft: rgba(26,20,16,.1);
    --plum: #6d4c8f;
    --rust: #c0392b;
    --ochre: #d97706;
  }

  body { overflow-x: hidden; }
  .page { position: relative; min-height: 100vh; }
  .page::before {
    content: ""; position: fixed; inset: 0;
    background:
      radial-gradient(ellipse at 30% 20%, var(--paper-light), transparent 60%),
      radial-gradient(ellipse at 80% 80%, var(--paper-warm), transparent 60%);
    pointer-events: none; z-index: 0;
  }

  /* topbar — same vocabulary as the rest of the site */
  .topbar {
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(26,20,16,.12);
  }
  .brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; }
  .brand-mark { display: inline-flex; align-self: center; }
  .brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
  .brand-sub { font-family: 'Fraunces', serif; font-style: italic; font-size: 11px; color: var(--ink-faint); }
  .topbar-right { display: flex; gap: 24px; font-size: 13px; color: var(--ink-soft); align-items: center; }
  .topbar-link { cursor: pointer; color: inherit; text-decoration: none; }
  .topbar-link:hover { color: var(--ink); }
  .signin-link {
    font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline;
    text-decoration-color: var(--rust); text-underline-offset: 4px;
  }

  /* hero strip */
  .hero {
    position: relative; z-index: 1;
    padding: 56px 56px 24px;
    max-width: 1200px; margin: 0 auto;
    border-bottom: 1px solid var(--line-soft);
  }
  .kicker {
    display: flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: .18em; color: var(--ink-faint);
  }
  .kicker-line { width: 36px; height: 1px; background: var(--ink); }

  .h1 {
    font-size: 64px; line-height: .98; margin: 14px 0 0;
    font-family: 'Fraunces', serif; font-weight: 600;
    letter-spacing: -.04em; color: var(--ink);
    text-wrap: balance;
  }
  .h1 em { font-style: italic; font-weight: 500; color: var(--plum); }
  .lede {
    font-size: 16px; line-height: 1.55; color: var(--ink-soft);
    max-width: 620px; margin: 16px 0 0; text-wrap: pretty;
  }
  .meta-row {
    margin-top: 22px;
    display: flex; gap: 24px; flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--ink-faint); letter-spacing: .04em;
  }
  .meta-row strong { color: var(--ink); font-weight: 600; }

  /* doc body — sidebar + content */
  .doc {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 220px 1fr; gap: 56px;
    padding: 40px 56px 80px;
  }

  /* sidebar tabs (terms/privacy/faq/etc.) */
  .toc { position: sticky; top: 24px; align-self: start; }
  .toc-eyebrow {
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
    letter-spacing: .14em; color: var(--ink-faint);
    text-transform: uppercase; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .toc-list { list-style: none; padding: 0; margin: 0 0 28px; }
  .toc-list a {
    display: block; padding: 7px 0;
    font-family: 'Fraunces', serif; font-size: 14.5px;
    color: var(--ink-soft); text-decoration: none;
    border-left: 2px solid transparent; padding-left: 12px;
    margin-left: -14px;
    transition: border-color .15s, color .15s;
  }
  .toc-list a:hover { color: var(--ink); }
  .toc-list a.active {
    color: var(--ink); font-weight: 600; border-left-color: var(--plum);
  }
  .toc-list a .num {
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
    color: var(--ink-faint); margin-right: 8px;
  }

  /* content */
  .content { min-width: 0; max-width: 720px; }
  .content section { padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
  .content section:last-child { border-bottom: none; }
  .content section:first-child { padding-top: 8px; }

  .section-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--ink-faint); letter-spacing: .12em;
    margin-bottom: 8px;
  }
  .h2 {
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: 30px; line-height: 1.1; letter-spacing: -.02em;
    margin: 0 0 16px; color: var(--ink);
  }
  .h2 em { font-style: italic; font-weight: 500; color: var(--plum); }
  .h3 {
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: 18px; letter-spacing: -.01em;
    margin: 24px 0 8px; color: var(--ink);
  }
  .content p {
    font-size: 15.5px; line-height: 1.65; color: var(--ink-soft);
    margin: 0 0 14px;
  }
  .content p strong { color: var(--ink); font-weight: 600; }
  .content a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
  .content a:hover { color: var(--ink); }
  .content ul, .content ol {
    margin: 0 0 14px; padding-left: 22px;
    font-size: 15.5px; line-height: 1.65; color: var(--ink-soft);
  }
  .content li { margin-bottom: 6px; }

  /* "envelope-style" callout — lifts the design vocabulary into the doc */
  .callout {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line); border-radius: 6px;
    padding: 18px 20px;
    margin: 18px 0;
    font-size: 14.5px; color: var(--ink-soft); line-height: 1.55;
  }
  .callout-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
    letter-spacing: .12em; color: var(--rust);
    text-transform: uppercase; margin-bottom: 6px;
  }
  .callout strong { color: var(--ink); }

  /* FAQ accordion (re-uses ledger feel) */
  .faq-item {
    border-bottom: 1px solid var(--line-soft);
  }
  .faq-q {
    width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: 17px; letter-spacing: -.01em; color: var(--ink);
  }
  .faq-plus {
    width: 22px; height: 22px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid var(--ink); border-radius: 50%;
    font-size: 13px; transition: transform .2s;
  }
  .faq-item.open .faq-plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
  .faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
    font-size: 15px; line-height: 1.6; color: var(--ink-soft);
  }
  .faq-item.open .faq-a { max-height: 600px; padding: 0 0 18px; }

  /* contact strip */
  .contact-strip {
    margin-top: 28px;
    padding: 22px 24px;
    background: rgba(109,76,143,.06);
    border: 1px solid rgba(109,76,143,.2);
    border-radius: 8px;
    display: flex; gap: 18px; align-items: flex-start;
    flex-wrap: wrap;
  }
  .contact-strip-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--paper-card); border: 1px solid var(--line);
    border-radius: 50%;
  }
  .contact-strip-text { flex: 1; min-width: 240px; }
  .contact-strip-text strong { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink); }
  .contact-strip-text p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
  .contact-strip-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; background: var(--ink); color: var(--paper);
    border-radius: 6px; font-family: 'Fraunces', serif; font-weight: 600;
    text-decoration: none; font-size: 14px;
    box-shadow: 0 3px 0 var(--plum);
    transition: transform .15s, box-shadow .15s;
  }
  .contact-strip-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--plum); color: var(--paper); }

  /* footer */
  .footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--line);
    padding: 28px 56px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto;
  }
  .footer a { color: var(--ink-soft); text-decoration: none; margin: 0 8px; }
  .footer a:hover { color: var(--ink); }

  /* responsive */
  @media (max-width: 1000px) {
    .hero { padding: 40px 32px 20px; }
    .h1 { font-size: 48px; }
    .doc { grid-template-columns: 1fr; gap: 24px; padding: 24px 32px 60px; }
    .toc {
      position: static; padding-bottom: 16px;
      border-bottom: 1px solid var(--line-soft);
    }
    .toc-list { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
    .toc-list a { padding: 6px 10px; margin: 0; border: 1px solid var(--line); border-radius: 999px; }
    .toc-list a.active { border-color: var(--plum); background: var(--paper-card); }
    .footer { padding: 22px 32px; }
  }
  @media (max-width: 600px) {
    .topbar { padding: 14px 18px; }
    .brand-sub { display: none; }
    .topbar-right { display: none; }
    .hero { padding: 32px 20px 16px; }
    .h1 { font-size: 38px; }
    .lede { font-size: 15px; }
    .doc { padding: 20px 20px 48px; }
    .h2 { font-size: 24px; }
    .footer { padding: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }