* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
header, footer { max-width: 1040px; margin: auto; padding: 24px 32px; }
header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.8px; white-space: nowrap; }
.brand img { flex: 0 0 auto; margin-right: 4px; }
.brand span { font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 24px; font-size: 14px; }
nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); background: var(--surface); }
nav a[aria-current="page"] { color: var(--accent); background: var(--surface); border-color: var(--line); font-weight: 700; }
main { max-width: 80ch; margin: auto; padding: 32px; overflow-wrap: anywhere; }
h1 { margin: 32px 0 16px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -1px; line-height: 1.15; }
h2 { margin: 32px 0 16px; font-size: 24px; line-height: 1.25; }
p { margin: 16px 0; }
ul, ol { padding-left: 24px; }
li { margin: 16px 0; }
.operator { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 14px; }
.operator p { margin: 8px 0; }
.operator strong { color: var(--text); }
table { width: 100%; margin: 24px 0; border-collapse: collapse; table-layout: fixed; font-size: 14px; overflow-wrap: anywhere; }
td, th { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 700; }
label { display: block; margin: 24px 0; font-size: 14px; color: var(--muted); }
button { font: inherit; border: 1px solid var(--control-line); border-radius: 4px; }
button { min-height: 44px; padding: 8px 16px; background: var(--accent); color: var(--ink); border-color: transparent; cursor: pointer; font-weight: 700; line-height: 1.5; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: not-allowed; }
.quiet { background: transparent; border-color: var(--line); color: var(--text); }
.quiet:hover { background: var(--surface); }
#theme-toggle { flex: 0 0 44px; width: 44px; padding: 8px; }
.check-label { display: flex; align-items: flex-start; gap: 8px; }
.check-label input { flex: 0 0 auto; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--accent); }
.check-label span { min-width: 0; }
[data-cookie-status], #license-status { color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 16px 0; }
footer button { font-size: 14px; }
.skip { position: absolute; z-index: 40; top: -100px; left: 16px; padding: 8px 16px; background: var(--surface); color: var(--text); }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.privacy-banner { position: fixed; z-index: 30; bottom: 16px; left: 16px; right: 16px; max-width: 760px; margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.privacy-banner h2 { margin: 0; font-size: 20px; }
.privacy-banner p { font-size: 14px; line-height: 1.5; margin: 16px 0; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-actions button { flex: 1 1 180px; font-size: 14px; }
#cookie-declaration { max-width: 100%; overflow-wrap: anywhere; }
#license-notices { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 550px) {
  header, main, footer { padding: 24px 16px; }
  .brand { gap: 4px; }
  .brand img { width: 24px; height: 24px; }
  nav { margin-top: 16px; gap: 4px; }
  nav a { padding: 8px; }
  h2 { font-size: 20px; }
  td, th { padding: 8px; font-size: 12px; }
  .privacy-banner, #license-notices { padding: 16px; }
}
