:root {
  --bg: #ffffff; --text: #111113; --muted: #5d5d66; --line: #e8e8ec; --soft: #f5f5f7; --accent: #ff453a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --text: #f5f5f7; --muted: #a1a1aa; --line: #26262b; --soft: #121214; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.lang { display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 inherit; font-family: inherit; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Legal documents */
article { padding: 36px 0 64px; }
article h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
article .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
article h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
article h3 { font-size: 17px; margin: 24px 0 6px; }
article p, article li { color: var(--text); }
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
.note { background: var(--soft); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.toc { background: var(--soft); border-radius: 14px; padding: 14px 18px; margin: 20px 0 8px; columns: 2; column-gap: 28px; font-size: 14px; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: 2px 0; break-inside: avoid; }
.toc a:hover { color: var(--text); }
@media (max-width: 560px) { .toc { columns: 1; } article h1 { font-size: 28px; } }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; white-space: nowrap; }
.caps { text-transform: uppercase; font-size: 14.5px; }
[hidden] { display: none !important; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
