:root {
  --bg: #0f1013;
  --surface: #17181c;
  --text: #f2f2f3;
  --muted: #a6a8ae;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e31837;
  --accent-text: #ff6b6b;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f7;
    --surface: #ffffff;
    --text: #17181c;
    --muted: #5b5e66;
    --line: rgba(0, 0, 0, 0.1);
    --accent-text: #c4122d;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Bricolage Grotesque", system-ui, sans-serif;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px;
}

.legal-header img { height: 36px; width: auto; }

.lang-switch { display: flex; gap: 6px; }

.lang-switch a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

main {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

@media (max-width: 600px) {
  main { margin: 0 0 48px; border-radius: 0; border-width: 1px 0; padding: 24px 16px; }
}

h1 {
  margin: 0 0 4px;
  font-family: "Sora", "Bricolage Grotesque", sans-serif;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.2;
}

h2 {
  margin: 32px 0 8px;
  font-family: "Sora", "Bricolage Grotesque", sans-serif;
  font-size: 19px;
}

.updated { margin: 0 0 24px; color: var(--muted); font-size: 14px; }

p, li { color: var(--text); }
ul { padding-left: 20px; }
li + li { margin-top: 6px; }
a { color: var(--accent-text); }

section[lang] + section[lang] { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

.js-lang section[lang] { display: none; }
.js-lang section[lang].is-active { display: block; margin-top: 0; padding-top: 0; border-top: 0; }

footer {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
}
