/* Shared shell for the standalone legal / support pages.
   Same tokens as index.html so the whole site reads as one thing. */
:root {
  --ink: #0B1220;
  --ink-2: #364256;
  --steel: #5B6577;
  --paper: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF2F9;
  --line: #DDE4F0;
  --brand: #2563EB;
  --brand-deep: #1E40AF;
  --amber: #F59E0B;
  --emerald: #059669;
  --danger: #DC2626;

  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --shell: min(760px, 100% - 2.5rem);
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9EEF9; --ink-2: #AEBBD2; --steel: #8695B0;
    --paper: #080D16; --surface: #111A2B; --surface-2: #17223A; --line: #24314C;
    --brand: #5B8DEF; --brand-deep: #3B6FD4; --danger: #F87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E9EEF9; --ink-2: #AEBBD2; --steel: #8695B0;
  --paper: #080D16; --surface: #111A2B; --surface-2: #17223A; --line: #24314C;
  --brand: #5B8DEF; --brand-deep: #3B6FD4; --danger: #F87171;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #0B1220; --ink-2: #364256; --steel: #5B6577;
  --paper: #F6F8FC; --surface: #FFFFFF; --surface-2: #EEF2F9; --line: #DDE4F0;
  --brand: #2563EB; --brand-deep: #1E40AF; --danger: #DC2626;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
a { color: var(--brand); }
:where(a, button):focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.shell { width: var(--shell); margin-inline: auto; }

.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.03em; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-in .back { margin-left: auto; font-size: .9rem; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav-in .back:hover { color: var(--brand); }

.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: .8rem; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.updated { font-family: var(--mono); font-size: .8rem; color: var(--steel); margin-top: 1rem; }
.intro { margin-top: 1.5rem; font-size: 1.1rem; color: var(--ink-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; margin-top: 1.25rem; }
.card h2 { font-size: 1.2rem; margin-bottom: .85rem; }
.card p + p { margin-top: .8rem; }
.card p, .card li { color: var(--ink-2); font-size: .95rem; }
.card ul { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.card ul.plain { list-style: none; padding: 0; }
.card ul.plain li { display: flex; gap: .6rem; align-items: flex-start; }
.card ul.plain li svg { width: 16px; height: 16px; flex: none; margin-top: .25rem; color: var(--brand); }
.card ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .55rem; }

.note { border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 1rem 1.15rem; margin-top: 1.25rem; }
.note.warn { border-left-color: var(--danger); }
.note p { font-size: .92rem; color: var(--ink-2); }
.note b { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
td { color: var(--ink-2); }
.tbl-wrap { overflow-x: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.93); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0; margin-top: 3rem; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.foot-links a:hover { color: var(--brand); }
.foot-c { margin-top: 1.25rem; font-size: .82rem; color: var(--steel); }
