:root {
  color-scheme: dark;
  --ink: #f3f5f7;
  --muted: #aab3bf;
  --bg: #090d12;
  --panel: #121820;
  --line: #2a323d;
  --gold: #e8c679;
  --felt: #17644f;
  --warning: #ffdda0;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-padding-top: 78px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.8 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--gold); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9ff3d0; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; left: 14px; top: 10px; padding: 10px 14px; border-radius: 10px; color: #07100e; background: #9ff3d0; font-weight: 850; transform: translateY(-180%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, .97);
}

.site-header > div,
.shell,
.site-footer {
  width: min(100% - 40px, 880px);
  margin-inline: auto;
}

.site-header > div {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand { min-height: 44px; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.language-link { display: inline-flex; align-items: center; min-height: 44px; }
.language-link { font-size: .88rem; font-weight: 700; }
.legal-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.locale-switch { display: inline-flex; align-items: center; gap: 2px; }
.locale-switch a { min-width: 38px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 7px; color: var(--muted); font: 500 .875rem/1 system-ui, sans-serif; text-decoration: none; }
.locale-switch a:hover { color: var(--ink); }
.locale-switch a[aria-current="page"] { color: var(--ink); font-weight: 750; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }

.shell { padding-block: clamp(38px, 7vw, 74px); }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: .6rem 0 1rem; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
.lede { max-width: 66ch; margin: 0; color: var(--muted); font-size: 1.06rem; }
.revision { display: block; margin-top: 16px; color: var(--muted); font-size: .88rem; }

.release-blocker,
.status-note {
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid rgba(227, 196, 104, .38);
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(23, 100, 79, .28), rgba(101, 69, 15, .12));
}

.status-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.status-note strong { color: var(--gold); white-space: nowrap; }
.status-note span { color: var(--muted); font-size: .92rem; text-align: right; }
.contact-line { color: var(--muted); }

.language-section { padding: 26px 0 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-title > div { display: flex; align-items: center; gap: 12px; }
.section-title h2 { margin: 0; }
.section-title > a { font-size: .9rem; font-weight: 750; }
.locale-badge { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(227,196,104,.55); border-radius: 12px; color: var(--gold); background: rgba(227,196,104,.08); font-size: .78rem; font-weight: 900; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.document-card { min-height: 112px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: linear-gradient(145deg, rgba(13,28,24,.92), rgba(10,22,19,.72)); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.document-card:hover { border-color: rgba(227,196,104,.72); transform: translateY(-1px); }
.document-card > span { grid-row: 1 / 3; color: var(--gold); font: 800 .72rem/1 system-ui; letter-spacing: .08em; }
.document-card > strong { line-height: 1.25; }
.document-card > small { margin-top: 5px; color: var(--muted); line-height: 1.35; }
.legal-caveat { margin: 12px 0 34px; padding: 16px 18px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--muted); background: rgba(227,196,104,.07); font-size: .9rem; }
.operator-details { margin: 46px 0 16px; border-top: 1px solid rgba(41,70,62,.8); border-bottom: 1px solid rgba(41,70,62,.8); }
.operator-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; color: var(--muted); cursor: pointer; font-size: .75rem; font-weight: 800; letter-spacing: .13em; list-style: none; text-transform: uppercase; }
.operator-details summary::-webkit-details-marker { display: none; }
.operator-details summary span:last-child { color: var(--gold); font-size: 1.25rem; font-weight: 500; line-height: 1; }
.operator-details[open] summary span:last-child { transform: rotate(45deg); }
.operator-details-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; padding: 2px 0 22px; }
.operator-details-content strong { display: block; margin-top: 8px; color: var(--ink); font-size: 1rem; }
.operator-details-content p { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.operator-details-content .button-link { min-height: 40px; padding: 7px 12px; font-size: .82rem; }
.support-note { color: var(--muted); font-size: .9rem; }
.summary-box { margin: 24px 0; padding: 18px; border: 1px solid rgba(227,196,104,.34); border-radius: 14px; background: rgba(23,100,79,.14); }
.summary-box h2 { font-size: 1rem; color: var(--gold); }
.summary-box ul { margin-bottom: 0; }
.source-note { color: var(--muted); font-size: .88rem; }

.document-nav,
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.document-nav a,
.language-card {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 28, 24, .84);
  text-align: center;
  font-weight: 750;
  text-decoration: none;
}

.language-card { min-height: 130px; flex-direction: column; gap: 4px; }
.language-card strong { color: var(--ink); font-size: 1.25rem; }
.language-card span { color: var(--muted); font-size: .9rem; }
.document-nav a[aria-current="page"] { border-color: var(--gold); color: var(--ink); }

article { margin-top: 38px; }
section { padding: 24px 0; border-top: 1px solid rgba(41, 70, 62, .7); }
h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 4vw, 1.55rem); line-height: 1.25; }
p, ul { max-width: 72ch; }
li + li { margin-top: 7px; }
code { color: var(--warning); }
.callout { padding: 16px 18px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(227, 196, 104, .08); }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--gold); background: rgba(13, 28, 24, .84); }
.button-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--gold); border-radius: 12px; font-weight: 800; text-decoration: none; }

.site-footer {
  padding: 26px 0 44px;
  border-top: 1px solid rgba(41, 70, 62, .7);
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 620px) {
  .document-nav { grid-template-columns: 1fr; }
  .language-grid { grid-template-columns: 1fr; }
  .site-header > div { min-height: 58px; }
  .shell { padding-top: 34px; }
  .status-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .status-note span { text-align: left; }
  .legal-table { display: block; overflow-x: auto; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 7px; }
  .document-grid, .operator-details-content { grid-template-columns: 1fr; }
  .legal-header-actions { gap: 8px; }
  .legal-header-actions .language-link { font-size: .8rem; }
}

.document-card, .document-nav a, .language-card { border-radius: 8px; background: var(--panel); }
.document-card { padding: 23px; }
.document-card > small { font-size: .875rem; line-height: 1.6; }
.button-link { border-radius: 6px; font-weight: 650; }
.button-link:hover { background: var(--gold); color: var(--bg); }
.summary-box { border-radius: 8px; background: #17231f; }
.status-note { border-radius: 8px; background: var(--panel); }
section, .site-footer, .operator-details { border-color: var(--line); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.quick-links a { display: flex; align-items: center; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: .875rem; text-decoration: none; }
.quick-links a:hover { border-color: var(--gold); color: var(--gold); }
@media(max-width:390px) { .brand { font-size: 18px; gap: 8px; }.brand img { width: 32px; height: 32px; }.locale-switch a { min-width: 32px; }.legal-header-actions { gap: 6px; } }

@media print {
  :root { color-scheme: light; --ink:#111; --muted:#444; --bg:#fff; --panel:#fff; --line:#bbb; --gold:#5b4600; }
  body { background:#fff; }
  .skip-link { display: none; }
  .site-header, .document-nav { position: static; }
  .site-header { border-bottom:1px solid #ccc; }
  a { color:inherit; text-decoration:underline; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .skip-link, .document-card { transition: none; }
}

/* Secondary placement, still readable and directly addressable. */
.operator-contact { margin-top: 32px; padding-block: 20px; color: var(--muted); font-size: .875rem; line-height: 1.8; scroll-margin-top: 16px; }
.operator-contact h2 { color: var(--ink); font-size: 1rem; font-weight: 600; }
.operator-contact p { max-width: 85ch; }
