/* PocketMigo legal pages — shared styling.
   Matched to the landing page: same tokens, same two typefaces, same lit
   headline treatment, same alternating white / #FAF9FD grounds.

   THE FONTS ARE SELF-HOSTED, AND THAT IS THE POINT. These pages used to pull
   Nunito from fonts.googleapis.com, which handed Google the IP address of
   everyone who opened them — on the very page that promises to name every
   company that sees anything. Google was not on that list. It is not a company
   we use, so the request had to go rather than the sentence. */

@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-var-latin.woff2') format('woff2');
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-var-latin.woff2') format('woff2');
  font-weight: 200 1000; font-display: swap;
}

:root {
  --ground:  #FFFFFF;
  --raised:  #FFFFFF;
  --soft:    #FAF9FD;
  --ink:     #1B1B3A;
  --muted:   #6B6684;
  --line:    #ECE9F3;
  --violet:  #7B5EE8;
  --sage:    #4EA372;
  --sage-bg: #E4F6EA;
  /* the three stops down a headline letter, as on the landing page */
  --lit:  #4C4C86;
  --mid:  #25254E;
  --deep: #15152E;
  --cast: rgba(27, 27, 58, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #131120; --raised: #1C1A2B; --soft: #191728;
    --ink: #EFECF8; --muted: #9E98B4; --line: #2A2739;
    --sage-bg: #1B2A22;
    --lit: #FFFFFF; --mid: #E6E1F5; --deep: #BCB2DB; --cast: rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  --ground: #131120; --raised: #1C1A2B; --soft: #191728;
  --ink: #EFECF8; --muted: #9E98B4; --line: #2A2739;
  --sage-bg: #1B2A22;
  --lit: #FFFFFF; --mid: #E6E1F5; --deep: #BCB2DB; --cast: rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65; font-weight: 500;
  -webkit-text-size-adjust: 100%; overflow-x: hidden;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 28px 80px; }

/* ── masthead ─────────────────────────────────────────────────────────── */
header { padding: 44px 0 34px; }
/* The real wordmark, same as the landing page's nav, and the same pair of
   files so the cream one takes over on a dark ground. */
.mark { display: inline-block; margin-bottom: 30px; line-height: 0; }
.mark .logo { height: 30px; width: auto; display: block; }
.mark .logo.dk { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark .logo.lt { display: none; }
  :root:not([data-theme="light"]) .mark .logo.dk { display: block; }
}
:root[data-theme="dark"] .mark .logo.lt { display: none; }
:root[data-theme="dark"] .mark .logo.dk { display: block; }
.mark:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; border-radius: 6px; }
h1 {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: clamp(34px, 6vw, 50px); line-height: 1.06;
  letter-spacing: -.03em; margin: 0;
  /* lit from above, exactly as the landing page headlines are */
  padding: .12em 0; color: var(--ink);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  h1 {
    background-image: linear-gradient(176deg, var(--lit) 0%, var(--mid) 38%, var(--deep) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 9px var(--cast));
  }
}
.updated { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--muted); }

/* ── the opening statement ────────────────────────────────────────────── */
.lede {
  background: var(--soft); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 26px 24px; margin: 0 0 46px;
}
.lede p:last-child { margin-bottom: 0; }
.lede strong { color: var(--ink); }

/* ── body ─────────────────────────────────────────────────────────────── */
h2 {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: clamp(22px, 3vw, 27px); letter-spacing: -.015em;
  margin: 46px 0 14px; padding-top: 26px; border-top: 1px solid var(--line);
}
h2:first-of-type { margin-top: 0; }
h3 {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 19px; letter-spacing: -.01em; margin: 30px 0 8px;
}
p { margin: 0 0 15px; color: var(--muted); }
p strong { color: var(--ink); font-weight: 800; }
a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

ul { margin: 0 0 15px; padding: 0; list-style: none; }
li {
  position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--muted);
}
li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--violet); opacity: .5;
}
li strong { color: var(--ink); font-weight: 800; }

/* ── the who-sees-what table ──────────────────────────────────────────── */
.who { display: grid; gap: 14px; margin: 22px 0 8px; }
.who-item {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px 16px;
}
.who-name {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18.5px;
  color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em;
}
.who-item dl { margin: 0; }
.who-row { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 6px 0; }
.who-row + .who-row { border-top: 1px solid var(--line); }
.who-row dt {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet); padding-top: 3px;
}
.who-row dd { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ── footer ───────────────────────────────────────────────────────────── */
footer {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
footer a { margin-right: 18px; font-weight: 700; }

@media (max-width: 560px) {
  .wrap { padding: 0 20px 60px; }
  header { padding: 32px 0 26px; }
  .lede { padding: 20px 20px 18px; border-radius: 18px; }
  .who-row { grid-template-columns: 1fr; gap: 2px; }
}
