/* Shared style for the legal pages (privacy.html, terms.html). */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --fg: #111114; --muted: #5d5d66; --rule: #e6e6ec;
  --accent: #5E6AD2; --card: #f5f5f8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --fg: #f2f2f5; --muted: #9a9aa6; --rule: #232329; --accent: #8E9BEF; --card: #111116; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
  padding: 0 16px calc(48px + env(safe-area-inset-bottom));
}
.wrap { max-width: 720px; margin: 0 auto; }
header.top {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); margin-bottom: 32px;
}
header.top a { color: var(--fg); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 10px; }
header.top img { width: 32px; height: 32px; border-radius: 8px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
header.top nav a { font-weight: 500; color: var(--muted); }
header.top nav a[aria-current="page"] { color: var(--fg); }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 10px; padding-top: 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.summary { background: var(--card); border-radius: 14px; padding: 18px 20px; margin: 0 0 28px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
.toc { font-size: 15px; columns: 2; column-gap: 28px; margin-bottom: 8px; }
.toc li { break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
footer.bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
footer.bottom a { color: var(--muted); }
@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .toc { columns: 1; }
}
