/* Legal site stylesheet. Template: placeholders are filled from brand.json. Light and dark, phone first. */
:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --fg: #18181b;
  --muted: #6b6b74;
  --border: #e4e4e7;
  --accent: #0d7c6e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #151518;
    --fg: #f4f4f5;
    --muted: #9b9ba3;
    --border: #26262b;
    --accent: #2dd4bf;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.site { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a[aria-current="page"], nav.site a:hover { color: var(--fg); }

main { padding: 32px 0 48px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 22px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 14px;
}
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 24px 0; }
.cards .card { margin: 0; }
.cards h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: var(--muted); }
footer.site .identity { flex-basis: 100%; font-size: 13px; }
