/* Shared by /privacy and /terms. Tokens match index.html and 404.html. */
:root {
  --paper: #F4ECE0;
  --surface: #FFFDF8;
  --ink: #2B2620;
  --ink-2: #4A433A;
  --muted: #6E6559;
  --stroke: #E8E0D5;
  --accent: #3A6B35;
  --accent-soft: #E6EEDC;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #1D1A16;
  --surface: #27231E;
  --ink: #F3ECE0;
  --ink-2: #D9CFC2;
  --muted: #A3998A;
  --stroke: #3E3A33;
  --accent: #86B972;
  --accent-soft: #263520;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1D1A16;
    --surface: #27231E;
    --ink: #F3ECE0;
    --ink-2: #D9CFC2;
    --muted: #A3998A;
    --stroke: #3E3A33;
    --accent: #86B972;
    --accent-soft: #263520;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header { padding: 20px 0; border-bottom: 1px solid var(--stroke); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 24px; line-height: 1; }
header nav { display: flex; gap: 16px; font-weight: 700; font-size: 15px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a[aria-current="page"] { color: var(--ink); }

main { padding: 40px 0 56px; }
h1 { font-family: "Nunito", sans-serif; font-weight: 700; font-size: clamp(34px, 6.7vw, 47px); line-height: 1.05; }
.updated { color: var(--muted); margin-top: 6px; font-weight: 600; }
.lead {
  margin-top: 24px; padding: 18px 20px; border-radius: 18px;
  background: var(--accent-soft); color: var(--ink);
}
.lead p + p { margin-top: 8px; }

.toc { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface); }
.toc h2 { font-family: inherit; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.toc ol { padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.toc a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--accent); }

section { margin-top: 40px; scroll-margin-top: 16px; }
h2 { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 25px; line-height: 1.15; margin-bottom: 10px; }
h3 { font-size: 17px; font-weight: 800; margin: 20px 0 6px; }
p, ul, ol { color: var(--ink-2); }
p + p, p + ul, ul + p, ol + p { margin-top: 10px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }
strong { color: var(--ink); font-weight: 800; }
a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--stroke); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--stroke); color: var(--ink-2); }
th { background: var(--surface); color: var(--ink); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

footer { padding: 22px 0 36px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 16px; }
footer a { color: var(--ink-2); text-decoration: none; }

/* Language picker (legal-i18n.js) and the "English prevails" notice on translations. */
header .lang {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stroke);
  font-weight: 800; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
header .lang:hover { color: var(--ink); border-color: var(--muted); }
header .lang:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
header .lang svg { width: 16px; height: 16px; flex: none; }
header .lang .chev { width: 10px; height: 10px; }
header .lang select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  font: inherit; font-size: 16px; cursor: pointer; appearance: none; -webkit-appearance: none; border: 0;
}
header .wrap { flex-wrap: wrap; }
.notice { font-size: 14px; color: var(--muted); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 14px; margin: 0 0 20px; }
main { hyphens: auto; overflow-wrap: break-word; }
