:root {
  --accent: #ff6a00;
  --accent-strong: #b63b00;
  --accent-text: #b63b00;
  --focus: #b63b00;
  --accent-soft: #fff0e5;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --text: #161616;
  --muted: #5f5f5f;
  --line: #e6e3df;
  --line-strong: #cbc6c0;
  --shadow: 0 16px 44px rgb(24 18 12 / 8%);
  color-scheme: light;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

:root[data-theme="dark"] {
  --bg: #101111;
  --bg-soft: #171817;
  --surface: #1d1f1e;
  --surface-2: #242725;
  --text: #f4f3f0;
  --muted: #b7b7b3;
  --line: #343634;
  --line-strong: #5b5e5b;
  --accent-soft: #3b2416;
  --accent-text: #ff9b63;
  --focus: #ff9b63;
  --shadow: 0 16px 50px rgb(0 0 0 / 24%);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #101111;
    --bg-soft: #171817;
    --surface: #1d1f1e;
    --surface-2: #242725;
    --text: #f4f3f0;
    --muted: #b7b7b3;
    --line: #343634;
    --line-strong: #5b5e5b;
    --accent-soft: #3b2416;
    --accent-text: #ff9b63;
    --focus: #ff9b63;
    --shadow: 0 16px 50px rgb(0 0 0 / 24%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: #161616; border-radius: 7px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { width: min(1120px, calc(100% - 36px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 1.45rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.primary-nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent-text); }

.legal-layout { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 58px 0 88px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.legal-article { max-width: 760px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-text); font: 700 .76rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2.3rem, 6vw, 4.7rem); }
h2 { margin: 2.6rem 0 .8rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { margin: 1.7rem 0 .55rem; font-size: 1.08rem; }
p, li { color: var(--muted); }
.lede { max-width: 64ch; margin: 20px 0 30px; color: var(--text); font-size: 1.08rem; }
.updated { display: inline-flex; padding: 6px 10px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; }
ul { padding-left: 1.25rem; }
li + li { margin-top: .45rem; }
.notice { margin: 1.5rem 0; padding: 18px 20px; color: var(--text); background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 9px 9px 0; }
.notice p { margin: 0; color: inherit; }

.side-card { position: sticky; top: 96px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.side-card h2 { margin: 0 0 13px; font-size: 1rem; }
.section-links { margin: 0; padding: 0; list-style: none; }
.section-links li + li { margin-top: 8px; }
.section-links a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.section-links a:hover { color: var(--accent-text); }

.theme-picker { margin: 24px 0 0; padding: 0; border: 0; }
.theme-picker legend { margin-bottom: 8px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.theme-option { position: relative; min-height: 38px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: .75rem; font-weight: 700; }
.theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-option:has(input:checked) { color: var(--accent-text); background: var(--accent-soft); border-color: var(--focus); }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.choice-panel { margin-top: 18px; padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.choice-panel fieldset { margin: 0; padding: 0; border: 0; }
.choice-panel legend { font-weight: 800; }
.choice-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.choice-button { min-height: 42px; padding: 0 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; cursor: pointer; font-weight: 750; }
.choice-button:hover, .choice-button[aria-pressed="true"] { color: #fff; background: var(--accent-strong); border-color: var(--accent-strong); }
.choice-status { min-height: 1.65em; margin: 12px 0 0; font-size: .88rem; }

.contact-card { margin: 26px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.contact-card strong { display: block; margin-bottom: 5px; font-size: 1.08rem; }
.contact-card a { font-size: clamp(1rem, 3.7vw, 1.3rem); font-weight: 800; word-break: break-word; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { width: min(1120px, calc(100% - 36px)); min-height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: inherit; }

@media (max-width: 820px) {
  .header-inner { padding: 13px 0; align-items: flex-start; }
  .primary-nav { gap: 13px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; }
  .side-card { position: static; grid-row: 1; }
}

@media (max-width: 560px) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .header-inner { min-height: auto; }
  .primary-nav { justify-content: flex-start; }
  .footer-inner { padding: 24px 0; }
  .legal-layout { width: min(100% - 28px, 1120px); }
  .choice-actions { flex-direction: column; }
  .choice-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
