:root {
  color-scheme: dark;
  --background: #111310;
  --surface: #1b1e19;
  --text: #f4f6f1;
  --muted: #b5bbae;
  --border: #42483d;
  --accent: #c6f34a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #f5f7f4;
  --surface: #fff;
  --text: #182019;
  --muted: #4e5a50;
  --border: #cbd5c9;
  --accent: #176848;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--background); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; }
.legal-header { border-bottom: 1px solid var(--border); }
.legal-header-inner { max-width: 1000px; margin: auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 750; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions > a { color: var(--text); font-size: 14px; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; stroke-width: 2; }
:root:not([data-theme="light"]) .theme-icon-moon, :root[data-theme="light"] .theme-icon-sun { display: none; }
.legal-layout { max-width: 1000px; margin: auto; padding: 48px 24px 80px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 52px; }
.legal-nav { align-self: start; position: sticky; top: 24px; display: grid; gap: 11px; font-size: 14px; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--text); text-decoration: underline; }
.legal-content { min-width: 0; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; }
h1 { margin: 0 0 9px; font-size: clamp(29px, 4vw, 39px); line-height: 1.2; }
h2 { margin: 42px 0 10px; padding-top: 9px; border-top: 1px solid var(--border); font-size: 21px; line-height: 1.3; }
h3 { margin: 22px 0 6px; font-size: 16px; }
p, li { max-width: 72ch; }
.updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
ul, ol { padding-left: 23px; }
li + li { margin-top: 7px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.legal-footer { max-width: 1000px; margin: auto; padding: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .legal-layout { display: block; padding-top: 32px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 17px; margin-bottom: 32px; }
  .header-actions { gap: 8px; }
  .header-actions > a { font-size: 13px; }
}
