/* Legal pages: quiet, legible, same palette as the landing page. */
:root {
  --bg: #16051f; --panel: #240b31; --border: #5a2a7a; --text: #ead7ff; --muted: #b9a2d3;
  --accent: #c05cff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.7 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.site-header { border-bottom: 1px solid rgba(90,42,122,.6); background: rgba(22,5,31,.95); }
.bar { max-width: 46rem; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand img { display: block; height: 1.75rem; width: auto; }
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .875rem; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: #fff; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-family: "Permanent Marker", cursive; font-weight: 400; font-size: 1.9rem; line-height: 1.25; margin: 1rem 0 .5rem; }
h2 { font-size: 1.25rem; line-height: 1.35; margin: 2.25rem 0 .5rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; scroll-margin-top: 1rem; }
.doc p, .doc li { max-width: 68ch; overflow-wrap: anywhere; }
.version { display: inline-block; margin: 0 0 1.25rem; padding: .2rem .6rem; border: 1px solid var(--border); border-radius: 2px; color: var(--muted); font-size: .85rem; }
.anchor { margin-left: .4rem; text-decoration: none; opacity: 0; color: var(--muted); font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.toc { margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: 2px; background: var(--panel); padding: .5rem 1rem; }
.toc summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.toc ol { margin: .5rem 0; padding-left: 1.25rem; font-size: .9rem; }
.toc li { margin: .15rem 0; }
blockquote { margin: 1.25rem 0; padding: .25rem 1rem; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 2px; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: .4rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--panel); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .9em; }
.print-link button { background: none; border: 1px solid var(--border); color: var(--muted); padding: .4rem .9rem; border-radius: 2px; cursor: pointer; font: inherit; font-size: .85rem; }
.print-link button:hover { color: #fff; }
.site-footer { border-top: 1px solid rgba(90,42,122,.6); padding: 1.5rem 1rem; text-align: center; color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--muted); }
.cols { display: grid; gap: 2rem; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; } .wrap { padding-top: 2.5rem; } h1 { font-size: 2.25rem; } }
.docs { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.docs li { padding: .5rem 0; border-bottom: 1px solid rgba(90,42,122,.4); display: flex; flex-direction: column; }
.docs .v { color: var(--muted); font-size: .8rem; }
.note { color: var(--muted); font-size: .85rem; }
@media print {
  :root { --bg: #fff; --panel: #fff; --border: #999; --text: #000; --muted: #333; --accent: #000; }
  body { font: 11pt/1.5 Georgia, "Times New Roman", serif; }
  .site-header, .site-footer, .toc, .noprint, .skip, .anchor { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-family: inherit; font-weight: 700; font-size: 20pt; }
  a { color: #000; text-decoration: none; }
  .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  blockquote { border-left-width: 3px; break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
