/* Legal document pages (privacy, terms). Uses the site tokens and Baloo 2. */
body.legal { background: var(--paper); }

.legal-top {
  display: flex; align-items: center; gap: 12px;
  max-width: 820px; margin: 0 auto; padding: 20px 20px 0;
}
.legal-top .home {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: var(--fw-bold); text-decoration: none; color: var(--text);
}
.legal-top .home svg { width: 22px; height: 22px; }

.doc { max-width: 720px; margin: 0 auto; padding: 16px 20px 64px; }
.doc h1 { font-size: var(--fs-display); line-height: var(--lh-tight); margin: 16px 0 6px; }
.doc .updated { color: var(--text-soft); font-size: var(--fs-small); margin: 0 0 8px; }
.doc .lead { font-size: var(--fs-label); color: var(--text); margin: 0 0 8px; }

.doc h2 {
  font-size: var(--fs-title); line-height: var(--lh-tight);
  margin: 32px 0 8px; padding-top: 8px;
}
.doc h3 { font-size: var(--fs-label); margin: 20px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

.callout {
  background: var(--surface);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 var(--shade);
  padding: 16px 18px; margin: 20px 0;
}
.callout p { margin: 0; }

.doc .toc {
  background: var(--surface); border: var(--line) solid var(--stone);
  border-radius: var(--r-md); padding: 14px 18px; margin: 16px 0 24px;
}
.doc .toc strong { display: block; margin-bottom: 6px; }
.doc .toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.doc .toc li { margin-bottom: 4px; break-inside: avoid; }

@media (max-width: 520px) { .doc .toc ul { columns: 1; } }
