/* ═══════════════════════════════════════════════════════════════════
   KWITTI — THE LEGAL PAGES
   ───────────────────────────────────────────────────────────────────
   Three long documents, written to be read rather than skimmed past,
   so they get a reading measure, a sidebar that tracks where you are,
   and type one notch larger than the marketing page.
   ═══════════════════════════════════════════════════════════════════ */

body.legal{background:#0C0806}
body.legal::before{
  background:radial-gradient(70% 34% at 50% 0%, rgba(247,163,63,.08), transparent 72%)}

.lg{padding:104px 0 72px}
.lg-in{display:grid;grid-template-columns:232px minmax(0,1fr);gap:clamp(28px,5vw,66px);
  align-items:start}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.lg-side{position:sticky;top:100px;max-height:calc(100vh - 130px);overflow-y:auto;
  scrollbar-width:thin;padding-bottom:20px}
.lg-side::-webkit-scrollbar{width:4px}
.lg-side::-webkit-scrollbar-thumb{background:var(--line);border-radius:2px}
.lg-docs a.on{color:var(--amber);font-weight:700}
.lg-toc{display:flex;flex-direction:column;gap:2px}
.lg-toc a{font-size:12.5px;line-height:1.4;font-weight:500;color:var(--fg-3);
  padding:6px 10px;border-left:2px solid var(--line);transition:.2s var(--ease)}
.lg-toc a:hover{color:var(--fg-2);border-left-color:var(--line-2)}
.lg-toc a.on{color:var(--amber);border-left-color:var(--amber);background:rgba(247,163,63,.07)}

/* ── The document ─────────────────────────────────────────────────── */
.lg-doc{max-width:72ch;font-size:16.5px;line-height:1.72;color:var(--fg-2)}
.lg-doc > *:first-child{margin-top:0}
.lg-doc p{margin:0 0 17px}
.lg-doc strong{color:var(--fg);font-weight:700}
.lg-doc a{text-decoration:underline;text-decoration-color:rgba(247,163,63,.4);
  text-underline-offset:3px}
.lg-doc a:hover{text-decoration-color:var(--amber-lt)}
.lg-doc code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;
  background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:1px 6px;
  color:var(--w-100)}

.lg-h1{font-size:clamp(33px,5.4vw,50px);line-height:1.04;letter-spacing:-.038em;
  color:var(--fg);margin:0 0 22px}
.lg-h2{font-size:clamp(23px,3.2vw,30px);line-height:1.15;letter-spacing:-.028em;
  color:var(--fg);margin:54px 0 16px;scroll-margin-top:100px}
.lg-h2::after{content:'';display:block;width:42px;height:2px;border-radius:2px;
  background:var(--amber);margin-top:14px;opacity:.6}
.lg-h3{font-size:19px;line-height:1.25;letter-spacing:-.018em;color:var(--w-100);
  margin:34px 0 12px;scroll-margin-top:100px}
.lg-h4{font-size:16.5px;color:var(--w-100);margin:26px 0 10px;font-weight:700}

.lg-doc hr{border:0;border-top:1px solid var(--line);margin:40px 0}

.lg-list{margin:0 0 19px;padding-left:22px}
.lg-list li{margin:0 0 10px}
.lg-list .lg-list{margin:11px 0 0}
.lg-list li::marker{color:var(--amber)}

/* The draft callout at the head of each document. */
.lg-note{margin:0 0 30px;padding:19px 22px;border-radius:var(--r);
  background:rgba(240,194,92,.09);border:1px solid rgba(240,194,92,.32);border-left:3px solid var(--gold)}
.lg-note p{margin:0 0 10px;font-size:15px;line-height:1.6;color:var(--w-100)}
.lg-note p:last-child{margin:0}
.lg-note strong{color:var(--gold)}

/* ── Tables ───────────────────────────────────────────────────────── */
.lg-table-wrap{margin:0 0 24px;overflow-x:auto;border:1px solid var(--line);
  border-radius:var(--r);background:var(--surface);-webkit-overflow-scrolling:touch}
.lg-table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.55;min-width:520px}
.lg-table th{text-align:left;font-size:11px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--amber);padding:14px 16px;background:rgba(247,163,63,.07);
  border-bottom:1px solid var(--line);vertical-align:bottom}
.lg-table td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:top;
  color:var(--fg-2)}
.lg-table tr:last-child td{border-bottom:0}
.lg-table td:first-child{color:var(--fg);font-weight:600}

/* A placeholder the company does not have a number for yet. */
.ph{color:var(--gold);font-weight:700;white-space:nowrap}

@media (max-width:900px){
  .lg{padding-top:92px}
  .lg-in{grid-template-columns:1fr;gap:22px}
  .lg-side{position:static;max-height:none;overflow:visible}
  /* On a phone these documents are read straight through, so a
     thirty-item contents list is just something to scroll past. The
     three document links stay, as a row of chips. */
  .lg-side .foot-h,.lg-toc{display:none}
  .lg-docs{flex-direction:row;flex-wrap:wrap;gap:8px}
  .lg-docs a{display:inline-block;font-size:13px;font-weight:700;padding:9px 15px;
    border-radius:999px;background:var(--surface);border:1px solid var(--line)}
  .lg-docs a.on{color:var(--on-accent);background:var(--amber);border-color:var(--amber)}
  .lg-doc{font-size:16px;max-width:none}
}

/* The "Last updated / Version / Published at" block under each title. */
.lg-meta{font-size:13.5px;line-height:1.75;color:var(--fg-3);margin:-8px 0 26px}
.lg-meta strong{color:var(--w-100);font-weight:600}
