/* ============================================================
   Bluefin Studio — legal pages (privacy.html, terms.html)

   Type follows the homepage exactly (styles.css):
     · Saans SemiMono → body copy          (html, body in styles.css)
     · Saans          → headings           (--display)

   Two deliberate departures from styles.css, both Oliver's call:
     · The two faces never mix inside a sentence. <strong> keeps its
       parent's face and leans on WEIGHT instead.
     · styles.css:99 forces `strong, b { font-weight: 400 }` site-wide;
       here <strong> is allowed to go bold. NOTE: only Regular (400)
       font files ship in fonts/ — there is no bold cut — so the browser
       SYNTHESISES this weight. Swap in a real Saans bold woff2 and add
       a matching @font-face if the faux weight ever looks off.

   Otherwise house rules hold: letter-spacing normal, line-height 1.4,
   no text-transform, and colours are site tokens copied 1:1.
   ============================================================ */

@font-face {
  font-family: "Saans";
  src: url("fonts/Saans-Regular.woff2") format("woff2"),
       url("fonts/Saans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Saans SemiMono";
  src: url("fonts/SaansSemiMono-Regular.woff2") format("woff2"),
       url("fonts/SaansSemiMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* All values copied from styles.css — no new colours invented. */
  --blue:       #2200FF;
  --blue-deep:  #005BFE;
  --blue-haze:  #C3CEFF;
  --blue-ink:   #0B0054;
  --paper:      #FAFDFF;
  --pill:       rgba(184, 184, 184, 0.20);
  --black:      #000;
  --white:      #FFF;
  --footer-navy: #012048;   /* == .footer-section background */

  --display: "Saans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "Saans SemiMono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--mono);      /* body copy — matches the homepage */
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection      { background: var(--blue); color: var(--white); }
::-moz-selection { background: var(--blue); color: var(--white); }

a:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Shell ───────────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 120px;
}

/* ── Masthead ────────────────────────────────────────────── */

.legal__back {
  display: inline-block;
  font-size: 17px;
  line-height: 1.4;
  color: var(--blue-ink);
  text-decoration: none;
  margin-bottom: 56px;
  transition: color 160ms var(--ease);
}
.legal__back:hover { color: var(--blue); }

.legal__title {
  font-family: var(--display);   /* heading */
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1;
  letter-spacing: normal;
  margin: 0 0 14px;
}

.legal__meta {
  font-size: 15px;
  line-height: 1.4;
  color: var(--blue-ink);
  opacity: 0.6;
  margin: 0 0 48px;
}

/* ── "The short version" card ────────────────────────────── */

.legal__tldr {
  background: var(--footer-navy);
  color: var(--white);
  border-radius: 14px;
  padding: 30px 32px;
  margin: 0 0 56px;
}
.legal__tldr h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--blue-haze);
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.legal__tldr ul { margin: 0; padding-left: 20px; }
.legal__tldr li { margin-bottom: 10px; }
.legal__tldr li:last-child { margin-bottom: 0; }

/* ── Body ────────────────────────────────────────────────── */

.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 48px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--pill);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }

.legal h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: normal;
  margin: 28px 0 8px;
}

.legal p  { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 10px; }

.legal a {
  color: var(--blue);
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}
.legal a:hover { color: var(--blue-deep); }

/* Emphasis = weight, never a face change, so the two Saans cuts never
   meet inside a sentence. See the note at the top: this weight is
   synthesised, since no bold font file ships with the site. */
.legal strong {
  font-family: inherit;
  font-weight: 700;
}

/* Links inside the navy card stay white — --blue on navy is unreadable.
   Extra class outranks `.legal a` above (same specificity, later source). */
.legal .legal__tldr a { color: var(--white); }
.legal .legal__tldr a:hover { color: var(--blue-haze); }

/* Definition list — "what we collect" / "who we share with" */
.legal dl { margin: 0 0 16px; }
.legal dt {
  font-family: var(--display);   /* term reads as a small heading */
  font-weight: 400;
  font-size: 19px;
  margin: 22px 0 6px;
}
.legal dd { margin: 0 0 4px; }

.legal__note {
  font-size: 15px;
  line-height: 1.4;
  color: var(--blue-ink);
  opacity: 0.7;
  border-left: 1px solid var(--pill);
  padding-left: 16px;
  margin: 0 0 16px;
}

/* ── Foot ────────────────────────────────────────────────── */

.legal__foot {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--pill);
  font-size: 15px;
  line-height: 1.4;
  color: var(--blue-ink);
}
.legal__foot a { color: var(--blue-ink); text-decoration: none; }
.legal__foot a:hover { color: var(--blue); }

@media (max-width: 600px) {
  .legal { padding: 40px 20px 80px; }
  .legal__back { margin-bottom: 40px; }
  .legal__tldr { padding: 24px 22px; }
  .legal h2 { font-size: 24px; }
}
