:root {
  color-scheme: light dark;
  --background: #f6f8f7;
  --surface: #ffffff;
  --text: #182722;
  --muted: #50665c;
  --line: #d5dfd9;
  --accent: #15643e;
  --focus: #0d6bce;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.75; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--surface); z-index: 2; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1160px; margin: 0 auto; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 720; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; line-height: 1; }
.languages { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .85rem; }
.languages a { padding: .3rem .05rem; }
.languages [aria-current] { font-weight: 750; color: var(--text); text-decoration: none; }
.page-layout { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3.5rem; padding: 3rem 2rem 2rem; }
.contents { align-self: start; position: sticky; top: 1.5rem; font-size: .86rem; line-height: 1.5; }
.contents-label { font-weight: 700; margin-bottom: .8rem; }
.mobile-toc { display: none; }
.contents summary { cursor: pointer; font-weight: 700; padding-bottom: .8rem; }
.contents details:not([open]) summary { padding-bottom: 0; }
.contents ol { margin: 0; padding: 0; list-style: none; }
.contents li { margin: 0 0 .55rem; }
.contents a { display: block; padding: .2rem 0; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; }
main { min-width: 0; max-width: 730px; }
.page-header { margin-bottom: 2.5rem; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .83rem; margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 730; line-height: 1.18; letter-spacing: -.045em; margin: 0; overflow-wrap: anywhere; }
.updated { color: var(--muted); margin-top: .9rem; font-size: .88rem; }
h2 { font-size: 1.35rem; line-height: 1.4; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); letter-spacing: -.015em; }
h3 { font-size: 1.06rem; line-height: 1.5; margin: 1.6rem 0 .55rem; }
p { margin: 0 0 1rem; }
article ul { padding-left: 1.35rem; margin: .5rem 0 1.25rem; }
article li { padding-left: .2rem; margin-bottom: .45rem; }
article strong { font-weight: 700; }
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--muted); }
.review { text-align: center; padding: .7rem 1rem; color: #553b06; background: #fff1c8; font-size: .86rem; border-bottom: 1px solid #d8bb70; }
.error-page { max-width: 680px; margin: 10vh auto; padding: 1.5rem; }
.error-page h1 { margin-bottom: 1rem; }
@media (max-width: 900px) {
  .page-layout { display: block; max-width: 760px; padding-top: 1.5rem; }
  .contents { position: static; margin-bottom: 2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; }
  .desktop-toc { display: none; }
  .mobile-toc { display: block; }
  .contents ol { columns: 2; column-gap: 1.5rem; }
  .contents li { break-inside: avoid; }
}
@media (max-width: 540px) {
  :root { font-size: 16px; }
  .site-header { padding: 1.2rem 1.1rem; }
  .page-layout { padding: 1.5rem 1.1rem 1rem; }
  .contents ol { columns: 1; }
  .languages { gap: .6rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --background: #050a0e; --surface: #0d151c; --text: #f5f7fa; --muted: #aab3bd; --line: #32424f; --accent: #65de98; --focus: #77c7ff; }
}
@media print {
  :root { color-scheme: light; font-size: 11pt; --background: white; --text: black; --muted: #444; --line: #bbb; --accent: #174f35; }
  .contents, .languages, .skip-link, .brand-mark { display: none; }
  .site-header, .page-layout { display: block; max-width: none; padding: 0; }
  .site-header { border: 0; margin-bottom: 1rem; }
  main { max-width: none; }
  h2, h3 { break-after: avoid; }
  h2 { padding-top: .8rem; margin-top: 1.5rem; }
  a { text-decoration: underline; }
}

.legal-nav { max-width: 1160px; margin: 0 auto; padding: .75rem 2rem; font-size: 1rem; font-weight: 650; }
@media (max-width: 540px) { .legal-nav { padding: .65rem 1.1rem; } }

.site-header .languages { justify-content: flex-end; }
@media (max-width: 540px) { .site-header { flex-direction: column; align-items: flex-start; } .site-header .languages { justify-content: flex-start; } }
