/* OCS document pages (privacy, terms). Same tokens as the main site. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-ocs.woff2') format('woff2');
  font-weight: 500 600; font-stretch: 112.5% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Michroma';
  src: url('fonts/michroma-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --maroon: #5a1424; --maroon-hi: #6c1b2e; --maroon-lo: #47101c;
  --cream: #f3ece0; --gold: #c9a86a;
  --bg: #140a0d; --surface: #221115;
  --line: rgba(243, 236, 224, .09); --line-2: rgba(243, 236, 224, .16); --line-3: rgba(243, 236, 224, .30);
  --text: var(--cream); --text-2: #cdc1b4; --text-3: #978a7f;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-label: 'Michroma', 'Archivo', system-ui, sans-serif;
  --f-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; font-synthesis: none; scroll-padding-top: 100px; }
body { font-family: var(--f-ui); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--maroon-lo); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--maroon); font-weight: 600; font-size: .875rem;
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: translateY(76px); }

/* Nav */
.nav {
  position: fixed; z-index: 100;
  top: calc(12px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
  width: min(1180px, calc(100% - 24px)); height: 60px; margin-inline: auto;
  display: flex; align-items: center; gap: 8px; padding: 0 8px 0 22px;
  border-radius: var(--r-pill);
  background: rgba(26, 13, 17, .82);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.brand { display: inline-flex; align-items: center; margin-right: auto; padding-block: 10px; }
.brand img { height: 19px; width: auto; }
.back {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  transition: color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.back:active { transform: scale(.97); }
.back svg { width: 16px; height: 16px; }
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: var(--r-pill);
  background: rgba(243, 236, 224, .04); border: 1px solid var(--line);
}
.seg button {
  position: relative; z-index: 1; height: 32px; min-width: 42px; padding: 0 10px; border-radius: var(--r-pill);
  font-family: var(--f-label); font-size: .5625rem; letter-spacing: .14em;
  color: var(--text-3); transition: color 200ms ease;
}
.seg button[aria-pressed="true"] { color: var(--maroon); }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2);
  border-radius: var(--r-pill); background: var(--cream);
  transition: transform 240ms var(--ease-out);
}
.seg[data-active="da"] .seg-thumb { transform: translateX(100%); }
@media (hover: hover) and (pointer: fine) {
  .back:hover { color: var(--text); background: rgba(243, 236, 224, .05); }
  .seg button[aria-pressed="false"]:hover { color: var(--text); }
}

/* Document */
main { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: calc(152px + env(safe-area-inset-top, 0px)) 0 120px; }
.eyebrow {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; margin-bottom: 22px;
  border: 1px solid rgba(201, 168, 106, .38); border-radius: var(--r-pill); background: rgba(201, 168, 106, .06);
  font-family: var(--f-label); font-size: .625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
h1 {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
}
.updated { margin: 14px 0 52px; font-size: .875rem; color: var(--text-3); }
.intro { font-size: 1.0625rem; color: var(--text-2); margin-bottom: 8px; }
h2 {
  font-family: var(--f-display); font-stretch: 112.5%; font-weight: 500;
  font-size: 1.1875rem; letter-spacing: -.01em; line-height: 1.35; margin: 46px 0 12px;
}
p, li { color: var(--text-2); text-wrap: pretty; }
p + p { margin-top: 12px; }
ul { margin: 10px 0 0 20px; }
li + li { margin-top: 6px; }
main a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
main a:hover { text-decoration-color: var(--gold); }
strong { color: var(--text); font-weight: 600; }

.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-family: var(--f-label); font-weight: 400; font-size: .5625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); background: rgba(243, 236, 224, .03); }
td { color: var(--text-2); }
td code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; color: var(--text); }
tr:last-child td { border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; margin-top: 18px;
  border-radius: var(--r-pill); background: var(--cream); color: var(--maroon);
  font-family: var(--f-label); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--gold); } }

[data-lang-block][hidden] { display: none; }

/* Footer */
.footer {
  padding: 56px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(120% 140% at 0% 0%, var(--maroon-hi) 0%, var(--maroon) 46%, var(--maroon-lo) 100%);
}
.foot { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.foot img { width: 180px; height: auto; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.foot a, .foot button { font-size: .875rem; color: #e2d6c4; transition: color 200ms ease; }
.foot p { width: 100%; font-size: .8125rem; color: #c4ae9e; padding-top: 20px; border-top: 1px solid rgba(243, 236, 224, .2); }
@media (hover: hover) and (pointer: fine) { .foot a:hover, .foot button:hover { color: var(--cream); } }

@media (max-width: 640px) {
  .back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main { padding-top: calc(128px + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #1d0f13; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
