:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: #202124;
  background: #f7f8fc;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #4055c8; text-underline-offset: 0.15em; }
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.brand { color: inherit; font-size: 1.25rem; font-weight: 750; text-decoration: none; }
.language-menu { max-width: min(75vw, 36rem); text-align: end; }
.language-menu summary { cursor: pointer; font-weight: 650; }
.language-menu nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem 0.8rem; padding-top: 0.75rem; }
.language-menu [aria-current="page"] { color: inherit; font-weight: 750; text-decoration-thickness: 0.15em; }
main, footer { max-width: 920px; margin: 0 auto; padding: 1.25rem; }
.authority-note { margin-bottom: 1.5rem; padding: 0.9rem 1rem; border-inline-start: 0.3rem solid #6574d8; background: #eef0ff; }
.legal-document { padding: clamp(1.25rem, 3vw, 3rem); border: 1px solid #dfe2ee; border-radius: 1rem; background: #fff; box-shadow: 0 0.5rem 2rem rgba(32, 33, 36, 0.06); overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.25; scroll-margin-top: 1rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { margin-top: 2.5rem; font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { margin-top: 1.75rem; }
li + li { margin-top: 0.5rem; }
footer { color: #687078; font-size: 0.9rem; }
.locale-fallback { min-height: 80vh; display: grid; align-content: center; justify-items: start; }
.primary-link { display: inline-block; padding: 0.65rem 1rem; border-radius: 0.65rem; color: #fff; background: #4055c8; text-decoration: none; }
[dir="rtl"] .language-menu { text-align: start; }
[dir="rtl"] .language-menu nav { justify-content: flex-start; }
[dir="rtl"] .legal-document a[href^="http"],
[dir="rtl"] .legal-document a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 600px) {
  .site-header { align-items: stretch; flex-direction: column; }
  .language-menu { max-width: none; text-align: start; }
  .language-menu nav { justify-content: flex-start; }
  main { padding: 0.75rem; }
  .legal-document { border-radius: 0.75rem; }
}

@media (prefers-color-scheme: dark) {
  :root { color: #eceef8; background: #15161b; }
  a { color: #aeb9ff; }
  .authority-note { background: #242947; }
  .legal-document { border-color: #353842; background: #1d1f25; box-shadow: none; }
  footer { color: #adb1bd; }
}
