/* The legal pages' one stylesheet, in the app's Spot On palette (docs/BRAND.md): sand ground, ink text, white cards;
   charcoal in dark mode. Sky is only ever a fill with ink text, so links are ink and underlined. */
:root {
  --ground: #FBF8F1;
  --card: #FFFFFF;
  --ink: #16304F;
  --muted: #4A5D74;
  --hairline: #E3DED3;
  --sky: #3FAEE8;
  --sky-tint: #D4EEFB;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F141B;
    --card: #151B24;
    --ink: #C9DAE9;
    --muted: #93A6BA;
    --hairline: #2D3845;
    --sky: #7DD3F8;
    --sky-tint: #0E4A6B;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 800; font-size: 1.1rem; }
header.brand .mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--sky); color: #16304F;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 4px; font-weight: 800; }
h2 { font-size: 1.25rem; margin: 36px 0 8px; font-weight: 800; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
p, ul, ol, table { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.updated { color: var(--muted); margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 16px 18px; margin: 0 0 16px; }
.card.key { background: var(--sky-tint); border-color: transparent; }
.card > :last-child { margin-bottom: 0; }
nav.toc ol { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
th { font-weight: 700; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--hairline); padding-top: 16px; }
footer a { color: var(--muted); }
