/* The reading pages: privacy.html, terms.html (both generated, see their
   *-from-draft.py) and support.html. Long text, so no hero and no cards
   round the prose — just the app's look: the Blackcurrant palette in both
   modes (mobile/src/theme/palettes.ts; the same values as styles.css), the
   header band closed by the app's wave, Baloo 2 headings, white notes on the
   tinted ground. Same origin, no scripts, no third-party requests. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("assets/fonts/baloo2-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light dark;
  --bg: #F3EFFC;
  --surface: #FFFFFF;
  --text: #241E3D;
  --muted: #5D5875;
  --line: #E0D9F2;
  --link: #4C36A1;      /* 7.90:1 on --bg */
  --alert: #C0392B;     /* the emergency card on support.html */
  --hdr-1: #6145CF;
  --hdr-2: #43308F;
  --wave-h: clamp(22px, 3.4vw, 44px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1622;
    --surface: #241E30;
    --text: #F4EEF7;
    --muted: #B4A7C4;
    --line: #352B45;
    --link: #AE9DF1;    /* 7.52:1 on --bg */
    --alert: #F0685A;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The header band: the app's ScreenTitle, gradient then wave. */
.legal-head {
  position: relative; background: linear-gradient(180deg, var(--hdr-1), var(--hdr-2));
  padding: 18px 22px 14px; margin-bottom: var(--wave-h);
}
.legal-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(1px - var(--wave-h));
  height: var(--wave-h); background: var(--hdr-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H240 V7 C206,23 172,1 128,10 C86,19 44,27 0,13 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H240 V7 C206,23 172,1 128,10 C86,19 44,27 0,13 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.legal-head a {
  max-width: 716px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 21px;
}
.legal-head img { width: 30px; height: 30px; }
.legal-head a:focus-visible { outline-color: #fff; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 22px 64px; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: 36px; letter-spacing: -0.3px; margin: 0 0 4px; }
.updated, .lede { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.lede { font-size: 17px; }
h2 { font-size: 23px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { font-size: 16px; color: var(--text); }
a { color: var(--link); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; vertical-align: top; }
th { background: var(--surface); }
.tablescroll { overflow-x: auto; }
.note, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; margin: 12px 0; box-shadow: 0 3px 20px rgba(76, 54, 161, 0.10);
}
.note { color: var(--muted); font-size: 14px; }
.card { border-radius: 20px; }
.card p { margin: 4px 0; }
.contact { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.emergency { border: 2px solid var(--alert); }
.emergency strong { color: var(--alert); }
@media (prefers-color-scheme: dark) {
  .note, .card { box-shadow: 0 3px 20px rgba(0, 0, 0, 0.4); }
}
footer { margin-top: 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; }
footer .navrow { font-size: 14px; margin: 0 0 6px; }
footer a { margin-right: 14px; }
footer .navrow a { margin-right: 0; }
footer .attrib { font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
footer .attrib a { margin-right: 0; }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--surface);
  color: var(--link); border: 2px solid var(--link); border-radius: 12px;
  padding: 12px 18px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
