:root {
  color-scheme: dark;
  --background: #10161f;
  --surface: #1b2532;
  --primary: #9ec9ff;
  --text: #f2f5fa;
  --secondary: #bbc7d8;
  --outline: #46556b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.75;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: var(--text); }
a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
  border-radius: 2px;
}
p, ul, ol, dl { margin: 0 0 1.25rem; }
li + li { margin-top: .55rem; }
ul, ol { padding-inline-start: 1.4rem; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.045em; margin: .75rem 0 1rem; }
h2 { font-size: 1.55rem; letter-spacing: -.025em; margin: 0 0 1.25rem; }
h3 { font-size: 1.08rem; margin: 1.5rem 0 .6rem; }
strong { font-weight: 650; }
::selection { background: var(--primary); color: var(--background); }
.shell { max-width: 1160px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .7rem 1rem; background: var(--surface); z-index: 2; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--outline); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 650; }
.brand img { width: 42px; height: 42px; }
.publisher { font-size: .875rem; color: var(--secondary); }
.intro { max-width: 760px; padding-block: 3.5rem 2.5rem; }
.eyebrow { color: var(--primary); font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.lead { font-size: 1.15rem; color: var(--secondary); max-width: 58ch; }
.date { color: var(--secondary); font-size: .9rem; margin-bottom: 0; }
.policy-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-bottom: 4rem; }
.contents { position: sticky; top: 2rem; max-height: calc(100vh - 4rem); overflow-y: auto; padding: .35rem .5rem .35rem 0; }
.contents h2 { font-size: .8rem; color: var(--secondary); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents li + li { margin-top: 0; }
.contents a { display: block; padding: .45rem .25rem; color: var(--secondary); font-size: .9rem; text-decoration: none; }
.contents a:hover { color: var(--primary); text-decoration: underline; }
.policy { min-width: 0; max-width: 72ch; }
.summary { padding: 1.5rem 1.75rem; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); margin-bottom: 2.5rem; }
.summary h2 { font-size: 1.15rem; }
.summary ul { margin-bottom: 0; }
.policy section { padding-block: 2rem; border-top: 1px solid var(--outline); scroll-margin-top: 2rem; }
.policy section > :last-child { margin-bottom: 0; }
.policy section:target h2 { color: var(--primary); }
.number { color: var(--primary); font-size: .85rem; font-weight: 500; display: block; margin-bottom: .6rem; }
.policy dt { font-weight: 650; margin-bottom: .3rem; }
.policy dd { margin: 0 0 1.25rem; }
.contact { background: var(--surface); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.contact p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--outline); color: var(--secondary); font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem; }
.footer-inner p { margin: 0; }
.not-found { max-width: 700px; min-height: 65vh; padding-block: 5rem; }

@media (max-width: 800px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contents { position: static; max-height: none; padding: 0 0 1.5rem; border-bottom: 1px solid var(--outline); }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1rem; }
  .contents a { min-height: 44px; }
  .intro { padding-top: 2.5rem; }
  .policy { max-width: none; }
}

@media (max-width: 440px) {
  .header-inner { flex-wrap: wrap; }
  .summary { padding: 1.25rem; }
  .contents ol { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  :root { color-scheme: light; font-size: 10.5pt; color: #111; background: #fff; line-height: 1.5; }
  .shell { max-width: none; padding: 0; }
  .skip-link, .contents, .site-footer, .brand img { display: none; }
  .header-inner { min-height: auto; padding-bottom: 1rem; }
  .brand, .publisher, .lead, .date, .eyebrow, .number, a, .policy section:target h2 { color: #111; }
  .intro { padding-block: 1.5rem; }
  h1 { font-size: 28pt; }
  h2 { font-size: 16pt; }
  h2, h3, dt { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .policy-layout { display: block; padding-bottom: 0; }
  .policy { max-width: none; }
  .summary, .contact { background: transparent; border: 1px solid #aaa; border-radius: 0; break-inside: avoid; }
  .policy section { padding-block: 1.25rem; border-color: #aaa; }
  a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }
  @page { margin: 18mm; }
}
