/* ============================================================================
   WARFORM — legal / document pages
   One stylesheet for every page in this family (privacy, terms, refunds, DMCA,
   AI safety, accessibility, delete-account, consumer health data, medical,
   contact). Same contract as the app and the landing page: ink canvas, ONE
   crimson accent, hairlines, no glow, no scanlines, real type.

   Long-form legal text stays on a light "paper" sheet inside the dark chrome:
   that is a readability decision, not a second theme — dark body copy at
   reading length is measurably worse, and this is the text people actually
   have to read.

   Load order: this file only. No page ships its own <style> block.
   ============================================================================ */

@font-face{font-family:"Bebas Neue";src:url("../fonts/BebasNeue-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/Barlow-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/Barlow-Bold.ttf") format("truetype");font-weight:700;font-display:swap}

:root{
  /* chrome (ink) */
  --ink:#060608; --card:#0B0B0F; --line:#1E1E26; --line-2:#2A2A33;
  --chrome-text:#F2F2F5; --chrome-sub:#9A9AA6; --chrome-mute:#6E6E7A;
  --accent:#FF3B5C; --accent-deep:#C8102E;
  /* paper (the sheet the document is printed on) */
  --sheet:#F7F7F4; --sheet-2:#EFEFEA; --sheet-ink:#17171C; --sheet-sub:#4A4A55;
  --sheet-line:#D9D9D2; --sheet-rule:#C9C9C0;
  --paper-accent:#B3122E;
  --display:"Bebas Neue","Arial Narrow",Impact,sans-serif;
  --body:"Barlow",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r:14px; --r-sm:8px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--body);background:var(--ink);color:var(--chrome-text);
  overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  line-height:1.62;
}
a{color:inherit}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
[id]{scroll-margin-top:78px}

/* ---------------------------------------------------------------- chrome -- */
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(6,6,8,.96);
  border-bottom:1px solid var(--line);
}
.topbar .wrap{
  max-width:1040px;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;gap:14px;min-height:64px;
}
.topbar img{width:24px;height:24px;display:block}
.back-link{
  display:inline-flex;align-items:center;min-height:44px;text-decoration:none;
  font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--chrome-sub);transition:color .16s;
}
.back-link:hover{color:var(--chrome-text)}
.topbar .doc-meta{
  margin-left:auto;font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--chrome-mute);
}
#readbar{
  position:absolute;left:0;bottom:-1px;height:2px;width:0;
  background:var(--accent);z-index:2;pointer-events:none;
}

/* ------------------------------------------------------------- the sheet -- */
.sheetwrap{max-width:820px;margin:0 auto;padding:44px 20px 80px}
.sheet{
  background:var(--sheet);color:var(--sheet-ink);
  border:1px solid rgba(255,255,255,.07);border-radius:var(--r);
  padding:34px 26px;
  font-size:16.5px;line-height:1.72;
  box-shadow:0 30px 70px rgba(0,0,0,.55);
}
@media (min-width:760px){.sheetwrap{padding:64px 24px 104px}.sheet{padding:60px 64px}}

/* document header */
.sheet h1{
  font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(30px,5.4vw,46px);letter-spacing:.01em;line-height:1.02;
  color:var(--sheet-ink);margin-bottom:26px;
}
.meta{
  border-left:2px solid var(--paper-accent);
  padding:2px 0 2px 18px;margin-bottom:32px;
}
.meta p{font-size:14px;line-height:1.62;color:var(--sheet-sub);margin:4px 0}
.meta strong{color:var(--sheet-ink);font-weight:700}
.meta a{color:var(--paper-accent);text-decoration:underline;text-decoration-color:rgba(179,18,46,.35);text-underline-offset:3px}

/* on-this-page index */
.toc{
  border:1px solid var(--sheet-line);border-radius:var(--r-sm);
  background:var(--sheet-2);margin:0 0 34px;
}
.toc summary{
  cursor:pointer;list-style:none;display:flex;align-items:center;
  min-height:52px;padding:12px 18px;
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;color:var(--paper-accent);
}
.toc summary::-webkit-details-marker{display:none}
.toc summary::after{content:"+";margin-left:auto;font-family:var(--mono);font-size:16px;line-height:1;color:var(--paper-accent)}
.toc[open] summary::after{content:"\2013"}
.toc ol{list-style:none;padding:0 18px 14px;margin:0;counter-reset:none}
/* The index carries its own section numbers in the link text ("2.1 …"),
   so the document's ordered-list counter must not prefix it as well. This
   needs the .sheet prefix to out-specify `.sheet ol li::before` below. */
.toc li{margin:0;padding-left:0;counter-increment:none}
.sheet .toc ol li{padding-left:0;counter-increment:none}
.sheet .toc ol li::before{content:none}
.toc a{
  display:flex;align-items:center;min-height:40px;padding:4px 0;
  font-size:13.5px;line-height:1.45;color:var(--sheet-sub);text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.toc li:last-child a{border-bottom:0}
.toc a:hover{color:var(--paper-accent)}
.toc li.sub{padding-left:16px}
.toc li.sub a{font-size:12.5px;min-height:34px}
@media (min-width:1024px){
  .toc::details-content{display:block;content-visibility:visible;overflow:clip}
  .toc summary::after{content:"\2013"}
}

/* sections */
.sheet h2{
  font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(23px,3.6vw,32px);letter-spacing:.015em;line-height:1.06;
  color:var(--sheet-ink);
  margin:52px 0 16px;padding-bottom:12px;
  border-bottom:1px solid var(--sheet-rule);
}
.sheet h2:first-of-type{margin-top:8px}
.sheet h2 .sn{color:var(--paper-accent);margin-right:6px}
.sheet h3{
  font-family:var(--body);font-size:16.5px;font-weight:700;letter-spacing:.01em;
  color:var(--sheet-ink);margin:30px 0 10px;
}

/* body copy */
.sheet p{margin:0 0 15px;max-width:68ch}
.sheet ul,.sheet ol{margin:0 0 18px}
.sheet ul{list-style:none}
.sheet ul li{position:relative;padding-left:22px;margin-bottom:9px;max-width:68ch}
.sheet ul li::before{
  content:"";position:absolute;left:2px;top:.62em;
  width:6px;height:6px;border-radius:50%;background:var(--paper-accent);
}
.sheet ol{list-style:none;counter-reset:item}
.sheet ol li{position:relative;padding-left:30px;margin-bottom:9px;counter-increment:item;max-width:68ch}
.sheet ol li::before{
  content:counter(item) ".";position:absolute;left:0;top:0;
  font-family:var(--mono);font-size:13px;color:var(--paper-accent);
}
.sheet li > ul{margin:9px 0 4px 18px}
.sheet li > ul li{margin-bottom:6px}
.sheet strong{font-weight:700;color:var(--sheet-ink)}
.sheet code{
  font-family:var(--mono);font-size:13.5px;background:#E7E7E1;color:#1D1D22;
  padding:2px 6px;border-radius:4px;
  /* Long identifiers (function names, storage paths) must wrap, not widen the
     page on a 360px phone. */
  overflow-wrap:anywhere;
}
.sheet a{
  color:var(--paper-accent);text-decoration:underline;
  text-decoration-color:rgba(179,18,46,.35);text-underline-offset:3px;
  overflow-wrap:anywhere;
}
.sheet a:hover{text-decoration-color:var(--paper-accent)}

/* tables */
.table-scroll{margin:0 0 20px}
.scroll-hint{
  display:none;font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--paper-accent);padding-bottom:6px;
}
.sheet table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:14.5px}
.sheet th{
  text-align:left;padding:11px 12px;background:#E7E7E1;
  border-bottom:2px solid var(--sheet-rule);
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--sheet-ink);
}
.sheet td{padding:11px 12px;border-bottom:1px solid var(--sheet-line);vertical-align:top;color:var(--sheet-sub)}
.sheet td strong{color:var(--sheet-ink)}
.sheet tbody tr:last-child td{border-bottom:0}

/* callouts */
.alert{
  border-left:2px solid var(--paper-accent);background:var(--sheet-2);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  padding:16px 20px;margin:0 0 18px;
}
.alert p{margin:0 0 8px}
.alert p:last-child{margin-bottom:0}
blockquote{
  margin:0 0 18px;padding:14px 20px;max-width:68ch;
  border-left:2px solid var(--sheet-rule);background:var(--sheet-2);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  color:var(--sheet-sub);
}
blockquote strong{color:var(--sheet-ink)}

/* the governing-law / anchor block: one dark panel on the paper */
.law{
  margin:44px 0 0;padding:22px 24px;
  background:var(--card);color:var(--chrome-text);
  border:1px solid var(--line-2);border-radius:var(--r-sm);
  font-size:14.5px;line-height:1.7;
}
.law strong{color:#fff}
.law a{color:var(--accent);text-decoration-color:rgba(255,59,92,.4)}

/* end of document */
.end-row{
  margin-top:40px;padding-top:22px;border-top:1px solid var(--sheet-rule);
  display:flex;flex-wrap:wrap;gap:8px 26px;justify-content:space-between;
}
.end-row a{
  display:inline-flex;align-items:center;min-height:44px;text-decoration:none;
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--paper-accent);
}
.end-row a:hover{text-decoration:underline}

/* small print used by a couple of pages */
.addr-note{color:var(--sheet-sub);font-size:13px}
.crisis{
  border:1px solid var(--sheet-line);border-left:2px solid var(--paper-accent);
  background:var(--sheet-2);border-radius:0 var(--r-sm) var(--r-sm) 0;
  padding:18px 20px;margin:18px 0;
}
.crisis strong{color:var(--sheet-ink)}

/* ------------------------------------------------- legal index (hub) ----- */
.docs{list-style:none;margin:0;padding:0;border-top:1px solid var(--sheet-rule)}
.sheet .docs li{
  margin:0;padding:0;max-width:none;
  border-bottom:1px solid var(--sheet-line);
}
.sheet .docs li::before{content:none}
.docs a{
  display:grid;grid-template-columns:1fr auto;gap:4px 20px;align-items:center;
  padding:20px 2px;text-decoration:none;color:inherit;
}
.docs a:hover .docs-title{color:var(--paper-accent)}
.docs-title{
  font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:21px;letter-spacing:.04em;line-height:1.05;color:var(--sheet-ink);
  transition:color .16s;
}
.docs-desc{grid-column:1;color:var(--sheet-sub);font-size:14px;line-height:1.55}
.docs-go{
  grid-column:2;grid-row:1 / span 2;align-self:center;
  font-family:var(--mono);font-size:15px;color:var(--paper-accent);
}
.docs-note{margin:22px 0 0;color:var(--sheet-sub);font-size:13.5px}

/* ---------------------------------------------------------------- mobile -- */
@media (max-width:719px){
  .topbar .wrap{padding:0 16px;min-height:58px}
  .topbar .doc-meta{display:none}
  .sheetwrap{padding:26px 12px 64px}
  .sheet{padding:26px 20px;border-radius:12px;font-size:16px}
  .sheet h2{margin-top:42px}
  /* Tapping an anchor must not land the heading under the sticky topbar. */
  .sheet h1,.sheet h2,.sheet h3,.sheet h4,.sheet p,.sheet li{scroll-margin-top:76px}
  /* Full-width rows are easier to hit than 34px-high ones. */
  .toc a,.toc li.sub a{min-height:44px;font-size:14px}
  .toc li.sub a{font-size:13.5px}
  .table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-scroll .scroll-hint{display:block;text-align:right}
  .sheet table{min-width:560px;margin:0}
  .sheet blockquote,.law,.crisis{padding:16px 16px 16px 18px}
  .end-row a{display:inline-flex;align-items:center;min-height:44px}
}

/* ----------------------------------------------------------------- print -- */
@media print{
  #readbar,.topbar,.end-row,.toc{display:none !important}
  body{background:#fff;color:#111}
  .sheetwrap{padding:0;max-width:none}
  .sheet{
    background:#fff;color:#111;border:0;border-radius:0;padding:0;
    box-shadow:none;font-size:11.5pt;line-height:1.5;
  }
  .sheet a{color:inherit;text-decoration:underline}
  .sheet h2{page-break-after:avoid;border-bottom:1px solid #bbb}
  .law{background:#fff;color:#111;border:1px solid #bbb}
  .law strong{color:#111}
  .table-scroll{overflow:visible}
  .sheet table{min-width:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important}
}
