:root {
  color-scheme: light;
  --ink: #15161a;
  --muted: #565b65;
  --link: #2149a2;
  --border: #7c808a;
  --surface: #ecedef;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.7 Arial, sans-serif; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .75rem; background: #fff; z-index: 2; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem max(1.5rem, calc((100vw - 1240px)/2)); background: var(--ink); }
.site-header img { display: block; max-width: 100%; height: auto; }
.site-header a { color: #fff; }
.page-intro { max-width: 1240px; margin: 3rem auto 2rem; padding: 0 1.5rem; }
.eyebrow { color: var(--muted); font-size: .85rem; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
button { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: .3rem; padding: .35rem .85rem; cursor: pointer; }
button:hover { background: var(--surface); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; max-width: 1240px; margin: auto; padding: 0 1.5rem 4rem; }
.contents { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; font-size: .875rem; }
summary { font-weight: bold; cursor: pointer; }
.contents ol { list-style: none; padding: 0; }
.contents li { margin: .65rem 0; }
.contents a { display: block; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
main { min-width: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.25; margin: 0 0 1.5rem; }
h2 { font-size: 1.4rem; line-height: 1.4; margin: 2.5rem 0 1rem; }
p { margin: 0 0 1.15rem; overflow-wrap: anywhere; }
article > p { white-space: pre-line; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.5; }
caption { text-align: left; font-weight: bold; margin-bottom: .6rem; }
th, td { border: 1px solid var(--border); padding: .75rem; vertical-align: top; text-align: left; }
th { background: var(--surface); }
.versions { margin-top: 3rem; border-top: 1px solid var(--border); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem max(1.5rem, calc((100vw - 1192px)/2)); background: var(--surface); }
@media (max-width: 850px) {
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .contents { position: static; max-height: none; border: 1px solid var(--border); padding: 1rem; }
  .contents ol { columns: 2; column-gap: 1.5rem; }
  .contents li { break-inside: avoid; }
  .site-header { gap: 1rem; }
  .site-header img { width: 200px; }
}
@media (max-width: 480px) {
  .contents ol { columns: 1; }
  .site-header { flex-wrap: wrap; }
  .page-intro { margin-top: 2rem; }
}
@media print {
  @page { margin: 18mm; }
  body { font-size: 10pt; line-height: 1.5; }
  .site-header, .page-intro, .contents, .skip-link, footer, .versions { display: none; }
  .legal-layout { display: block; padding: 0; max-width: none; }
  h1 { font-size: 18pt; }
  h2 { font-size: 12pt; break-after: avoid; }
  p { orphans: 3; widows: 3; }
  a { color: inherit; text-decoration: none; }
  .table-scroll { overflow: visible; }
  table { font-size: 8pt; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
}
