/* ══════════════════════════════════════════════════════════════
   Scorby — legal pages.

   Shared by privacy.html and terms.html, and deliberately a separate file rather than a
   third copy of the home page's inline styles: these two documents will be edited by
   whoever maintains the policy, and a stylesheet they never have to touch is one less
   thing to break while doing it.

   The palette and type are the home page's, at reading sizes. A privacy policy set in the
   marketing page's display faces reads as a poster; set in nothing at all it reads as an
   afterthought. This is the same brand, quieter.
   ══════════════════════════════════════════════════════════════ */
:root{
  --ink:#111E18; --ink-deep:#0A130F;
  --court:#3F7A55; --ball:#DCF75C;
  --clay:#B65735; --clay-tint:#EBD9CB;
  --paper:#F4EEE6; --card:#FFFCF7; --line:#E7DED1;
  --muted:rgba(17,30,24,.68);
  /* .64, not .45. Ink on paper needs .613 for 4.5:1; at .45 it measured 2.79 and failed
     WCAG AA — and --faint carries the version line, the section numbers and every eyebrow
     on all four legal pages. Do not lighten without re-measuring. */
  --faint:rgba(17,30,24,.64);

  --display:'Archivo',-apple-system,BlinkMacSystemFont,sans-serif;
  --ui:'Archivo',-apple-system,BlinkMacSystemFont,sans-serif;
  --mono:'Martian Mono',ui-monospace,SFMono-Regular,monospace;
  --mono-wdth:'wdth' 75;
  --display-wdth:'wdth' 118;

  --gutter:clamp(1.25rem,5vw,3rem);
  --measure:44rem;
  --ease:cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--ui);
  font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased}

.wrap{max-width:var(--measure);margin-inline:auto;padding-inline:var(--gutter)}

/* ── Masthead ───────────────────────────────────────────────── */
.masthead{background:rgba(255,252,247,.92);border-bottom:1px solid rgba(17,30,24,.07);
  position:sticky;top:0;z-index:20;
  backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%)}
.masthead .wrap{max-width:78rem;display:flex;align-items:center;gap:1.5rem;height:4.25rem}
.brand{display:flex;align-items:center;gap:.55rem;text-decoration:none;font-family:var(--display);
  font-variation-settings:var(--display-wdth);font-size:1.42rem;letter-spacing:-.045em;
  font-weight:700;color:var(--ink)}
.brand svg{width:1.25em;height:1.25em;flex:none}
.masthead nav{margin-left:auto;display:flex;gap:1.4rem;font-size:.9375rem}
.masthead nav a{color:rgba(17,30,24,.66);text-decoration:none}
.masthead nav a:hover,.masthead nav a[aria-current]{color:var(--court)}

/* ── Head of the document ───────────────────────────────────── */
.doc-head{padding-block:clamp(2.5rem,6vw,4rem) clamp(1.5rem,3vw,2.25rem)}
.eyebrow{font-family:var(--mono);font-variation-settings:var(--mono-wdth);font-size:.6875rem;
  letter-spacing:.22em;text-transform:uppercase;color:var(--court);margin:0 0 1rem;font-weight:500}
h1{font-family:var(--display);font-variation-settings:var(--display-wdth);font-weight:700;
  font-size:clamp(2.1rem,1.4rem + 2.6vw,3.1rem);line-height:1;letter-spacing:-.035em;margin:0}
.dates{font-family:var(--mono);font-variation-settings:var(--mono-wdth);font-size:.7rem;
  letter-spacing:.08em;color:var(--faint);margin-top:1.5rem}
.lede{font-size:1.15rem;color:var(--muted);margin-top:1.4rem;line-height:1.55}

/* ── The plain-language summary ─────────────────────────────────
   First, and boxed, because almost nobody reads to the end of one of these. It is a
   summary and says so — the sections below it are the terms that actually bind. */
.gist{background:var(--ink);color:var(--paper);border-radius:1.4rem;
  padding:clamp(1.35rem,4vw,2rem);margin-block:clamp(2rem,4vw,2.75rem)}
.gist h2{color:var(--paper);font-size:1.35rem;margin:0 0 1rem}
.gist ul{margin:0;padding-left:1.1rem}
.gist li{margin-bottom:.6rem;color:rgba(244,238,230,.82)}
.gist li:last-child{margin-bottom:0}
.gist strong{color:var(--ball);font-weight:600}
.gist .caveat{font-family:var(--mono);font-variation-settings:var(--mono-wdth);font-size:.66rem;
  letter-spacing:.06em;color:rgba(244,238,230,.5);margin:1.25rem 0 0;line-height:1.6}

/* ── Body ───────────────────────────────────────────────────── */
main{padding-bottom:clamp(3rem,6vw,5rem)}
section{padding-top:clamp(1.75rem,3.5vw,2.5rem)}
h2{font-family:var(--display);font-variation-settings:var(--display-wdth);font-weight:700;
  font-size:clamp(1.35rem,1.2rem + .7vw,1.7rem);line-height:1.15;letter-spacing:-.02em;
  margin:0 0 .9rem;scroll-margin-top:5.5rem}
h3{font-family:var(--ui);font-weight:600;font-size:1.0625rem;margin:1.6rem 0 .5rem;line-height:1.35}
p{margin:0 0 1rem}
ul,ol{margin:0 0 1rem;padding-left:1.2rem}
li{margin-bottom:.5rem}
a{color:var(--court)}
strong{font-weight:600}
hr{border:0;border-top:1px solid var(--line);margin-block:clamp(2rem,4vw,3rem)}

/* The section number, in the mono the app uses for every label. */
.n{font-family:var(--mono);font-variation-settings:var(--mono-wdth);font-size:.62rem;
  letter-spacing:.2em;color:var(--faint);display:block;margin-bottom:.55rem;font-weight:500}

/* ── Tables ─────────────────────────────────────────────────────
   The legal-basis and retention tables are the two places a reader goes looking for one
   specific answer, and prose is the wrong shape for that. Scrolls inside itself on a
   phone rather than pushing the page sideways. */
.table-scroll{overflow-x:auto;margin:0 0 1.25rem;border:1px solid var(--line);
  border-radius:.85rem;background:var(--card)}
table{border-collapse:collapse;width:100%;font-size:.95rem;min-width:32rem}
th,td{text-align:left;padding:.7rem .9rem;border-bottom:1px solid var(--line);vertical-align:top}
tbody tr:last-child td{border-bottom:0}
th{font-family:var(--mono);font-variation-settings:var(--mono-wdth);font-size:.6rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--faint);font-weight:500;
  background:rgba(17,30,24,.03)}

/* ── Callout ────────────────────────────────────────────────── */
.note{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--court);
  border-radius:.85rem;padding:1rem 1.15rem;margin:0 0 1.25rem}
.note p:last-child{margin-bottom:0}
.note.warn{border-left-color:var(--clay);background:rgba(235,217,203,.42);border-color:rgba(182,87,53,.2)}

/* ── The gaps ───────────────────────────────────────────────────
   Facts nobody but the developer can supply. Marked so that publishing with one still in
   place is impossible to do by accident — which is the entire point of styling them at
   all, and why they are loud rather than tasteful. */
.fill{background:#FFE9A8;border-bottom:2px solid var(--clay);color:var(--clay);
  font-family:var(--mono);font-variation-settings:var(--mono-wdth);font-size:.85em;
  padding:.1em .4em;border-radius:.25rem;font-weight:500}

/* ── Contents ───────────────────────────────────────────────── */
.toc{background:var(--card);border:1px solid var(--line);border-radius:1.1rem;
  padding:1.2rem 1.4rem;margin-block:clamp(1.5rem,3vw,2rem)}
.toc h2{font-size:.62rem;font-family:var(--mono);font-variation-settings:var(--mono-wdth);
  letter-spacing:.2em;text-transform:uppercase;color:var(--faint);font-weight:500;margin-bottom:.8rem}
.toc ol{columns:2;column-gap:2rem;margin:0;padding-left:1.1rem;font-size:.94rem}
@media (max-width:34rem){.toc ol{columns:1}}
.toc li{margin-bottom:.32rem}
.toc a{text-decoration:none;color:var(--ink)}
.toc a:hover{color:var(--court);text-decoration:underline}

/* ── Foot ───────────────────────────────────────────────────── */
footer{background:var(--ink-deep);color:rgba(244,238,230,.62);padding-block:2.5rem 3rem;
  font-size:.9rem}
footer .wrap{max-width:78rem;display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:space-between}
footer a{color:rgba(244,238,230,.62);text-decoration:none}
footer a:hover{color:var(--ball)}
footer nav{display:flex;gap:1.4rem;flex-wrap:wrap}
footer small{display:block;width:100%;color:rgba(244,238,230,.3);font-family:var(--mono);
  font-variation-settings:var(--mono-wdth);font-size:.68rem;line-height:1.7}

:focus-visible{outline:2px solid var(--court);outline-offset:3px;border-radius:4px}

@media print{
  .masthead,.toc,footer{display:none}
  body{background:#fff;font-size:11pt}
  .gist{background:#fff;color:#000;border:1px solid #000}
  .gist h2,.gist li,.gist strong,.gist .caveat{color:#000}
  a{color:#000;text-decoration:underline}
}
