/* Legal pages — privacy policy and terms.
   Values come from design.md ## Active card: ink, ink-2, accent, --t-h2, --t-h3,
   --t-body, --t-small, the 2px rule, the 82px gutter. Nothing new enters the system.
   Deliberately static: no bowl glow, no scroll choreography, no reveal. A legal page is
   read, not watched, and it has to survive being printed and being opened at 200% zoom. */

:root{
  --ink:#0b1d3a;
  --ink-2:#1d2f4f;
  --accent:#4059cf;
  --ink-rgb:11,29,58;
  --paper:#ffffff;
  --gut:clamp(20px,5.7vw,82px);
  --rule:2px solid rgba(var(--ink-rgb),.30);
  --t-h2:clamp(34px,min(5.62vw,9vh),81px);
  --t-h3:clamp(24px,min(2.1vw,3.4vh),30px);
  --t-body:clamp(17px,2.25vh,20px);
  --t-small:clamp(16px,1.9vh,18px);
  --space-2xs:4px;
  --space-xs:8px;
  --space-sm:12px;
  --space-md:16px;
  --space-lg:24px;
  --space-xl:32px;
  --space-2xl:48px;
  --measure:66ch;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter Tight',system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:var(--t-body);
  line-height:1.55;
  letter-spacing:-.005em;
  overflow-x:clip;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* ---------- one column for everything ----------
   The prose measure is 62ch resolved once, on a plain container that carries the body font size.
   `ch` on each child would resolve against that child's own size, so an 81px heading would get an
   81px-wide `ch` and the rules would stretch past the text. One container, one measure. */
.col{width:min(62ch,100%);margin-inline:auto}

/* ---------- top bar ---------- */
.bar{
  padding-inline:var(--gut);
  border-bottom:var(--rule);
}
.bar .col{
  display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-sm) var(--space-md);
  padding-block:var(--space-lg);
}
.brand{display:inline-flex;align-items:center;min-height:32px;gap:3px;font-weight:500;font-size:var(--t-small);letter-spacing:-.02em;color:var(--ink)}
.brand svg{display:block}
.brand span{white-space:nowrap}
.bar .back{display:inline-flex;align-items:center;min-height:32px;margin-inline-start:auto;font-size:var(--t-small);font-weight:500}

/* Inline links in running text get their hit area from vertical padding, which on an inline box
   grows the target without moving a single line. The project gate wants 32px targets even where
   WCAG 2.5.8 exempts inline links, and it is right to: a tap on a phone is a thumb, not a cursor. */
main a{padding-block:6px}

/* ---------- the page ---------- */
main{padding:clamp(40px,7vh,88px) var(--gut) clamp(48px,9vh,110px)}

h1{
  font-size:var(--t-h2);font-weight:400;line-height:1.06;letter-spacing:-.028em;
  margin:0;text-wrap:balance;
}
.updated{
  margin:var(--space-md) 0 0;color:var(--ink-2);
  font-size:var(--t-small);letter-spacing:-.01em;
}
.lede{
  margin:var(--space-xl) 0 0;font-size:clamp(20px,min(1.7vw,2.7vh),24px);line-height:1.4;
  color:var(--ink-2);letter-spacing:-.01em;
}

h2{
  font-size:var(--t-h3);font-weight:600;line-height:1.2;letter-spacing:-.02em;
  margin:var(--space-2xl) 0 0;padding-top:var(--space-lg);border-top:var(--rule);
  text-wrap:balance;
}
h2 + p, h2 + ul, h2 + ol{margin-top:var(--space-md)}

h3{
  font-size:var(--t-body);font-weight:600;line-height:1.3;letter-spacing:-.01em;
  margin:var(--space-xl) 0 0;
}
h3 + p{margin-top:var(--space-xs)}

p{margin:var(--space-md) 0 0;text-wrap:pretty}
ul,ol{margin:var(--space-md) 0 0;padding-inline-start:1.15em}
li{margin:var(--space-xs) 0 0;text-wrap:pretty}
li::marker{color:rgba(var(--ink-rgb),.55)}
strong{font-weight:600}

.note{
  margin:var(--space-xl) 0 0;padding:var(--space-md) var(--space-lg);
  border-inline-start:3px solid var(--accent);background:rgba(64,89,207,.05);
  font-size:var(--t-small);line-height:1.5;color:var(--ink-2);
}
.note p{margin:0}
.note p + p{margin-top:var(--space-xs)}

/* ---------- footer, mirrors the site's three-part legal row ---------- */
footer{
  border-top:var(--rule);
  padding:var(--space-xl) var(--gut) var(--space-2xl);
}
.legal{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:baseline;gap:var(--space-md);
  font-size:var(--t-small);letter-spacing:-.01em;color:var(--ink-2);
}
.legal__name{text-align:start}
.legal__links{display:flex;gap:var(--space-lg);justify-content:center}
.legal__links a{display:inline-flex;align-items:center;min-height:32px;color:var(--ink-2);text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(var(--ink-rgb),.30)}
.legal__links a:hover{color:var(--ink);text-decoration-color:currentColor}
.legal__copy{text-align:end}
.legal__links a[aria-current="page"]{color:var(--ink);text-decoration-color:currentColor}

@media (max-width:620px){
  .legal{grid-template-columns:1fr;gap:var(--space-xs);justify-items:center;text-align:center}
  .legal__name,.legal__copy{text-align:center}
  .legal__links a{display:inline-flex;align-items:center;min-height:32px}
  h2{margin-top:var(--space-xl)}
}

@media (hover:hover) and (pointer:fine){
  .legal__links a:hover{color:var(--ink)}
}

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

@media print{
  .bar,footer{display:none}
  body{color:#000;font-size:11pt}
  a{color:#000;text-decoration:underline}
  h2{page-break-after:avoid}
  p,li{page-break-inside:avoid}
}
