:root {
  color-scheme: dark;
  --bg: #0b1d36;
  --panel: #19334f;
  --text: #f4f7fc;
  --muted: #bfcada;
  --line: #34516e;
  --accent: #a9cdff;
}

* {
  box-sizing: border-box;
}

.header-band { color-scheme: dark; --bg: #0b1d36; --panel: #19334f; --text: #f4f7fc; --muted: #bfcada; --accent: #a9cdff; --line: #34516e; --raised: #19334f; color: var(--text); background: var(--bg); }
.header-band::selection, .header-band ::selection { color: #0b1d36; background: var(--accent); }

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 1;
  padding: 0.75rem 1rem;
  color: #0b1d36;
  background: var(--accent);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--text);
}

.site-header,
.shell,
.site-footer {
  width: min(54rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.parent-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
}

.breadcrumb {
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 48px;
  text-decoration: none;
  letter-spacing: -0.03em;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 750;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.parent-brand:hover,
.brand:hover {
  color: var(--accent);
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

.page-label {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent);
  font-size: 1rem;
}

.updated,
.site-footer {
  color: var(--muted);
}

.shell {
  padding-block: 3rem;
}

.policy-heading {
  padding-left: 1.5rem;
  border-left: 5px solid var(--accent);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 650;
}

h1,
h2 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

p {
  margin: 0 0 1.25rem;
}

.intro {
  font-size: 1.25rem;
}

.updated {
  margin-bottom: 0;
}

.contents {
  --panel: #19334f;
  margin-block: 2.5rem 3rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.contents ol {
  margin: 0;
  padding-left: 1.5rem;
}

.contents li + li {
  margin-top: 0.35rem;
}

.contents a {
  display: inline-block;
  vertical-align: top;
  padding-block: 0.3rem;
  min-height: 48px;
}

.contents li a {
  display: block;
  padding-block: 0;
}

.policy section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.policy + .policy {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.policy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.policy li + li {
  margin-top: 1rem;
}

.policy section > :last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.95em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 40rem) {
  .site-header,
  .shell,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .shell {
    padding-block: 2rem;
  }

  .policy-heading {
    padding-left: 1rem;
  }

  .contents {
    padding: 1.25rem;
  }
}

@media (forced-colors: active) {
  :focus-visible,
  .skip-link:focus {
    outline-color: Highlight;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --panel: #fff;
    --text: #000;
    --muted: #333;
    --line: #777;
    --accent: #000;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-header,
  .shell,
  .site-footer {
    width: 100%;
  }

  .shell {
    padding-block: 1.5rem;
  }

  .brand img,
  .skip-link,
  .contents,
  .site-footer {
    display: none;
  }

  h1 {
    font-size: 26pt;
  }

  h2 {
    font-size: 16pt;
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}

@media print {
  .header-band { color-scheme: light; --bg: #fff; --panel: #fff; --text: #000; --muted: #333; --accent: #000; --line: #777; }
}
