/* Shared look for the public documents. One file so the three pages cannot
   drift apart visually. */
:root {
  --bg: #0a0c10; --surface: #10141b; --surface-2: #161b24;
  --border: #1f2530; --border-2: #2a3140;
  --text: #e9edf4; --text-dim: #b9c2d0; --text-mute: #7d8ba2;
  --accent: #4d9bff;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }

/* ---- header: title, language switch, and the operator line ---- */
.doc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 6px;
}
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 20px; margin: 32px 0 10px; color: var(--accent); }
p, li { color: var(--text-dim); font-size: 15px; }
a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lang-switch { display: flex; gap: 4px; flex: 0 0 auto; }
.lang-switch button {
  border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text-mute); font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang-switch button:hover { color: var(--text-dim); border-color: var(--accent); }
.lang-switch button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #06121f;
}

/* Operator and effective date: required on the documents (a privacy policy has
   to say who controls the data), but it is reference material, not a headline —
   so it sits behind a toggle instead of taking the top of the page. */
.about {
  margin: 10px 0 26px;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.about summary {
  cursor: pointer; color: var(--text-mute); font-size: 12.5px;
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.about summary::-webkit-details-marker { display: none; }
.about summary::before { content: "i"; font-style: italic; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--border-2);
  display: inline-grid; place-items: center; font-size: 11px; }
.about[open] summary::before { border-color: var(--accent); color: var(--accent); }
.about p { margin: 10px 0 0; color: var(--text-mute); font-size: 12.5px; }

footer {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: 13px;
}

/* Only the selected language is shown; JS sets .is-on.
   Spans are used inside headings and links, so they must come back as inline —
   otherwise the title breaks onto its own line. */
[data-lang] { display: none; }
[data-lang].is-on { display: block; }
span[data-lang].is-on { display: inline; }
