/* The legal pages share the app's voice: warm paper, ink, a serif display face
   over a plain sans body. Deliberately one stylesheet and no JavaScript — these
   pages are read by App Review, by Play's Data safety reviewer, and by people
   trying to find one specific sentence. */

:root {
  --bone: #f6f4ef;
  --paper: #faf8f3;
  --ink: #141414;
  --graphite: #4a4642;
  --mist: #8c877d;
  --hairline: #e6e0d5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

header {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.2;
  margin: 22px 0 6px;
  font-weight: 600;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin: 36px 0 8px;
  font-weight: 600;
}

h3 { font-size: 16px; margin: 24px 0 6px; font-weight: 700; }

.updated { color: var(--mist); font-size: 14px; margin: 0 0 8px; }

p, li { color: var(--graphite); }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 8px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th { color: var(--ink); font-weight: 700; white-space: nowrap; }

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
}

nav.pages {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
}

nav.pages a { margin-right: 16px; display: inline-block; }

footer { margin-top: 34px; color: var(--mist); font-size: 13.5px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bone: #131110;
    --paper: #1b1917;
    --ink: #f4f1ea;
    --graphite: #cbc5ba;
    --mist: #8c877d;
    --hairline: #2e2a26;
  }
}

/* ── Generated-document styling (build_legal_html.py) ──────────────────────
   The pages are now built from legal/*.txt, so these rules describe the
   shapes that generator emits: numbered clauses, alpha sub-lists, fixed-width
   blocks lifted verbatim from the source, and unfilled placeholders. */

table.meta { font-size: 14px; margin-bottom: 26px; }
table.meta th { width: 130px; color: var(--mist); font-weight: 600; }

details.toc {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0 30px;
}
details.toc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
}
ol.toc { margin: 12px 0 2px; padding-left: 20px; font-size: 14.5px; }
ol.toc li { margin: 3px 0; list-style: none; }
ol.toc a { text-decoration: none; }
ol.toc a:hover { text-decoration: underline; }

/* A numbered clause. The number hangs in the left margin so the text of every
   clause starts on the same vertical line. */
.cl { margin: 0 0 4px; }
.cl p { margin: 10px 0; padding-left: 46px; text-indent: -46px; }
.cl p + p, .cl ul { text-indent: 0; }
.cl p .n {
  display: inline-block;
  width: 46px;
  font-weight: 700;
  color: var(--ink);
  text-indent: 0;
}
.cl ul.alpha, .cl p.grp { padding-left: 46px; text-indent: 0; }

ul.alpha { list-style: none; margin: 8px 0; padding-left: 46px; }
ul.alpha li { margin: 5px 0; }

p.grp {
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 2px;
  font-size: 14.5px;
}

/* Fixed-width blocks - definition tables, the data inventory, the retention
   schedule - are reproduced exactly as they appear in the source document. */
pre.block {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--graphite);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

/* An unfilled [[PLACEHOLDER]]. Loud on purpose: these must never reach a
   published page, and build_legal_html.py --check exits non-zero while any
   remain. */
mark.fill {
  background: #ffe08a;
  color: #4a3200;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92em;
}
@media (prefers-color-scheme: dark) {
  mark.fill { background: #6b5312; color: #ffe9b0; }
}

h2 { scroll-margin-top: 18px; }
