/* Project Ambition — the policy set: /privacy, /terms, /delete-account.
   Follows the app's DESIGN.md (ambition v.1 main/DESIGN.md): dark, quiet, made of text.
   One family at weight 300, no cards or boxes, no pill buttons, no bold, no blur or shadows.
   Grouping is space plus a thin hairline; facts read like a spec sheet; small uppercase
   tracked labels only name a value; actions are plain words; glow sits on one anchor per
   page (the title).
   Unlike the app, these pages use normal capitalisation (owner, 2026-10-12): the first
   letter is capitalised everywhere, as written in the HTML.
   Colours come from theme.js tokens so the visitor's chosen look carries over.
   legal.css is left alone: research.html and 404.html still build on it. */

:root{
  /* No-JS fallback: theme.js's Mono look. theme.js overwrites these. */
  --bg:#ffffff;
  --neutral:#e10600;
  --neutral-dim:rgba(225,6,0,0.62);
  --neutral-dim-strong:rgba(225,6,0,0.74);
  --accent:#e10600;

  --text-1: var(--neutral);
  --text-2: var(--neutral-dim-strong);
  --text-muted: var(--neutral-dim);
  --hairline: color-mix(in srgb, var(--neutral) 12%, transparent);
  --hairline-strong: color-mix(in srgb, var(--neutral) 24%, transparent);
  --glow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
  --font: "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --gap: clamp(56px, 8vw, 88px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --rail-w: 220px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scrollbar-color: var(--hairline-strong) var(--bg); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  margin: 0; background: var(--bg); color: var(--text-2);
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--text-1); color: var(--bg); }
:focus-visible{ outline: 1px solid var(--text-1); outline-offset: 4px; border-radius: 2px; }

/* Emphasis is brightness, never weight. */
strong, b{ font-weight: 300; color: var(--text-1); }
em{ font-style: normal; color: var(--text-1); }
h1, h2, h3{ font-weight: 300; }

a{ color: var(--text-1); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 200ms var(--ease-out); }
a:hover{ text-decoration-color: var(--text-1); }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); padding-left: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left)); padding-right: max(clamp(20px, 5vw, 56px), env(safe-area-inset-right)); }

/* The one label style: small, uppercase, tracked, muted. It names the value under it. */
.label{
  display: block; margin: 0 0 6px;
  font-size: 0.7rem; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- header: mark at one edge, the three documents as plain words at the other ---------- */
.site-head{ padding-top: max(clamp(16px, 3vw, 28px), env(safe-area-inset-top)); }
.head-row{ display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark{ display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-1); text-decoration: none; font-size: 15px; }
.mark svg{ width: 22px; height: 22px; }
.mark span{ color: var(--text-2); transition: color 200ms var(--ease-out); }
.mark:hover span{ color: var(--text-1); }

.doc-switch{ display: flex; gap: clamp(14px, 3vw, 28px); padding: 0; margin: 0; list-style: none; }
.doc-switch li{ margin: 0; }
.doc-switch a{
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  font-size: 14px; text-decoration: none; color: var(--text-muted);
  transition: color 200ms var(--ease-out);
}
.doc-switch a:hover{ color: var(--text-1); }
.doc-switch a[aria-current="page"]{ color: var(--text-1); }
.doc-switch .short{ display: none; }
@media (max-width: 480px){
  .mark span{ display: none; }
  .doc-switch .long{ display: none; }
  .doc-switch .short{ display: inline; }
}

/* ---------- page frame: rail + reading column ---------- */
.page{
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(40px, 7vw, 88px); padding-bottom: var(--gap);
}
.read{ max-width: 68ch; width: 100%; margin: 0 auto; min-width: 0; }
.read-wide{ max-width: 880px; }
@media (min-width: 1100px){
  .page.has-rail{ grid-template-columns: var(--rail-w) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); }
  .page.has-rail .read{ margin: 0; }
}

/* ---------- title block ---------- */
h1{
  color: var(--text-1); text-shadow: var(--glow);
  font-size: clamp(2.5rem, 6.5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 clamp(28px, 4vw, 40px); text-wrap: balance;
}
/* Spec sheet: label on the left, value on the right, a hairline between rows. */
.spec{ display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0 0 clamp(32px, 5vw, 48px); border-top: 1px solid var(--hairline); }
.spec dt, .spec dd{ margin: 0; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.spec dt{ padding-right: 28px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); line-height: 1.6rem; }
.spec dd{ color: var(--text-1); font-size: 15px; }
.lede{ font-size: clamp(1.06rem, 1.8vw, 1.16rem); line-height: 1.6; color: var(--text-2); margin: 0 0 18px; max-width: 64ch; }
.summary{ margin: clamp(28px, 4vw, 40px) 0 0; }
.summary p:not(.label){ color: var(--text-1); font-size: clamp(1.06rem, 1.8vw, 1.16rem); line-height: 1.6; margin: 0; max-width: 64ch; }

/* ---------- sections ---------- */
section, .block{ margin-top: var(--gap); scroll-margin-top: 32px; }
@media (max-width: 1099px){ section, .block{ scroll-margin-top: 64px; } }
h2{
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px;
  color: var(--text-1);
  font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance;
}
h2 .num{ flex: none; min-width: 1.6em; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-muted); transform: translateY(-0.35em); }
h3{ font-size: 1.12rem; line-height: 1.4; color: var(--text-1); margin: 36px 0 8px; }
p{ margin: 0 0 16px; }
.read p{ max-width: 66ch; }

/* Lists: a short hairline dash in place of the browser bullet. */
.read ul{ list-style: none; padding: 0; margin: 0 0 18px; }
.read ul > li{ position: relative; margin: 0 0 12px; padding-left: 24px; max-width: 66ch; }
.read ul > li::before{ content: ""; position: absolute; left: 2px; top: 0.8em; width: 10px; height: 1px; background: var(--hairline-strong); }

/* A key statement: brighter and a step larger, held between hairlines. No box. */
.key{ margin: 22px 0 24px; padding: 20px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.key p{ color: var(--text-1); font-size: 1.1rem; line-height: 1.6; }
.key > :last-child, .key p:last-child{ margin-bottom: 0; }
.ledger + .key{ margin-top: 0; border-top: 0; }

/* ---------- privacy: where your data lives (present first: your phone, then us) ---------- */
.split{ display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 56px); }
.zone .zone-sub{ margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.rows{ list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--hairline); }
.read .rows > li{ margin: 0; padding: 12px 0; max-width: none; border-bottom: 1px solid var(--hairline); color: var(--text-1); font-size: 15.5px; line-height: 1.45; }
.read .rows > li::before{ display: none; }
.rows li span{ display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.passing{ margin-top: 36px; }
.passing p{ color: var(--text-2); font-size: 15.5px; max-width: 64ch; }
.commitments{ margin-top: 36px; }
.read .commitments ul{ display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; }
.read .commitments li{ margin: 0; padding-left: 0; color: var(--text-1); font-size: 15.5px; }
.read .commitments li::before{ display: none; }
@media (max-width: 680px){ .split{ grid-template-columns: 1fr; row-gap: 36px; } }

/* ---------- providers table: a spec sheet, hairlines only ---------- */
.table-scroll{ overflow-x: auto; margin: 18px 0 8px; }
table{ width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td{ text-align: left; vertical-align: top; padding: 13px 20px 13px 0; font-weight: 300; }
thead th{ font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--hairline-strong); }
tbody td, tbody th{ border-bottom: 1px solid var(--hairline); }
tbody th{ color: var(--text-1); white-space: nowrap; }
@media (max-width: 640px){
  table, thead, tbody, tr, th, td{ display: block; }
  thead{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr{ padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  tbody tr:first-child{ border-top: 1px solid var(--hairline); }
  tbody td, tbody th{ border: 0; padding: 0; }
  td::before{ content: attr(data-label); display: block; margin-top: 10px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
}

/* ---------- terms: in brief, as spec rows ---------- */
.brief > p{ color: var(--text-muted); font-size: 15px; }
.brief-rows{ list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--hairline); }
.read .brief-rows > li{ margin: 0; padding: 0; max-width: none; border-bottom: 1px solid var(--hairline); }
.read .brief-rows > li::before{ display: none; }
.brief-rows a{
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline;
  padding: 16px 0; text-decoration: none; color: var(--text-2);
}
.brief-rows .n{ font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-muted); }
.brief-rows .t{ display: block; color: var(--text-1); font-size: 1.08rem; margin-bottom: 2px; }
.brief-rows .d{ display: block; font-size: 15px; line-height: 1.5; }
.brief-rows .go{ color: var(--text-muted); transition: color 200ms var(--ease-out), transform 200ms var(--ease-out); }
.brief-rows a:hover .go{ color: var(--text-1); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce){ .brief-rows a:hover .go{ transform: none; } }

/* ---------- delete account: two ways, side by side, then what happens ---------- */
.ways{ margin-top: clamp(36px, 5vw, 52px); }
.way h2{ margin-bottom: 4px; }
.way .when{ margin: 0 0 18px; font-size: 14.5px; color: var(--text-muted); }
.way .where{ margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--text-1); font-size: 1.12rem; }
.way .where span{ color: var(--text-muted); padding: 0 6px; }
.way p{ font-size: 15.5px; }
.action{
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--text-1); font-size: 1.05rem; text-decoration: none;
}
.action span{ transition: transform 200ms var(--ease-out); }
.action:hover span{ transform: translateX(3px); }
@media (prefers-reduced-motion: reduce){ .action:hover span{ transform: none; } }

.ledger{ list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--hairline); }
.read .ledger > li{ display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 16px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--hairline); max-width: none; }
.read .ledger > li::before{ display: none; }
.node{ width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; }
.node-done{ background: var(--text-1); }
.node-device{ box-shadow: inset 0 0 0 1px var(--text-1); }
.node-later{ outline: 1px dashed var(--text-2); outline-offset: -1px; }
.ledger .t{ display: block; color: var(--text-1); font-size: 1.1rem; line-height: 1.4; }
.ledger .label{ margin: 4px 0 12px; }
.ledger ul{ margin: 0; }
.ledger ul > li{ font-size: 15.5px; margin-bottom: 8px; }
.ledger ul > li:last-child{ margin-bottom: 0; }

/* ---------- contact close ---------- */
.contact .who{ color: var(--text-1); font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.25; margin: 0 0 4px; }
.contact .mail{ font-size: 1.05rem; overflow-wrap: anywhere; }

/* ---------- contents: rail on wide screens, inline list on narrow ---------- */
.toc{ list-style: none; padding: 0; margin: 0; }
.toc li{ margin: 0; }
.toc a{
  display: flex; gap: 12px; padding: 6px 0; text-decoration: none; color: var(--text-muted);
  font-size: 14px; line-height: 1.4; transition: color 250ms var(--ease-out);
}
.toc a .n{ flex: none; min-width: 20px; font-size: 12px; padding-top: 2px; }
.toc a:hover, .toc a[aria-current="true"]{ color: var(--text-1); }

.contents-inline{ margin: var(--gap) 0 0; padding-top: 20px; border-top: 1px solid var(--hairline); }
.contents-inline .toc{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.contents-inline .toc a{ min-height: 40px; align-items: center; }
@media (max-width: 560px){ .contents-inline .toc{ grid-template-columns: 1fr; } }

.rail{ display: none; }
@media (min-width: 1100px){
  .contents-inline{ display: none; }
  .rail{ display: block; }
  .rail-inner{ position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow: auto; scrollbar-width: none; }
  .rail-inner::-webkit-scrollbar{ display: none; }
  .rail .label{ margin-bottom: 12px; }
  .rail .toc{ position: relative; padding-left: 16px; }
  .rail .toc::before, .rail .toc::after{ content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; }
  .rail .toc::before{ background: var(--hairline); }
  .rail .toc::after{ background: var(--text-1); transform-origin: top; transform: scaleY(var(--progress, 0)); }
  .rail-top{ display: inline-block; margin-top: 22px; font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
  .rail-top:hover{ color: var(--text-1); }
}

/* Narrow screens: slim sticky bar naming the current section + progress. Solid, no blur. */
.minibar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: max(12px, env(safe-area-inset-top)) clamp(20px, 5vw, 56px) 12px;
  background: var(--bg);
  font-size: 14px; color: var(--text-1);
  opacity: 0; transform: translateY(-100%); pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
}
.minibar.is-on{ opacity: 1; transform: none; pointer-events: auto; }
.minibar a{ color: inherit; text-decoration: none; display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.minibar .n{ font-size: 12px; color: var(--text-muted); flex: none; }
.minibar .t{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minibar::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline); }
.minibar::before{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--text-1); transform-origin: left; transform: scaleX(var(--progress, 0)); z-index: 1; }
@media (min-width: 1100px){ .minibar{ display: none; } }
@media (prefers-reduced-motion: reduce){ .minibar{ transition: none; } }

/* ---------- footer ---------- */
.site-foot{ padding: 32px 0 max(44px, env(safe-area-inset-bottom)); }
.foot-row{ position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding-top: 26px; }
.foot-row::before{ content: ""; position: absolute; top: 0; left: clamp(20px, 5vw, 56px); right: clamp(20px, 5vw, 56px); height: 1px; background: var(--hairline); }
.foot-note{ font-size: 13.5px; color: var(--text-muted); margin: 0; }
.foot-links{ display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a{ display: inline-flex; align-items: center; min-height: 36px; font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"]{ color: var(--text-1); }

@media print{
  .site-head nav, .rail, .minibar, .contents-inline, .site-foot{ display: none; }
  body{ background: #fff; color: #222; }
  h1{ text-shadow: none; }
}
