*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #FFCC00;
  --text:   #1a1a2e;
  --muted:  #555570;
  --border: #e2e4f0;
  --bg:     #ffffff;
  --bg-alt: #f8f9fc;
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Language bar ───────────────────────────────────────────────────── */
.lang-bar {
  background: #0a0e1a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #1a2035;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .3px;
}
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ── Language sections ──────────────────────────────────────────────── */
.lang-section { display: none; }
.lang-section.visible { display: block; }

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  background: #0a0e1a;
  padding: 40px 24px 36px;
  text-align: center;
}
header .badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
header h1 {
  color: #fff;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
header p.sub {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 8px;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
main { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }

/* ── TOC ────────────────────────────────────────────────────────────── */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 44px;
}
.toc h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 5px; }
.toc a { color: #0a0e1a; text-decoration: none; font-size: 14px; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* ── Sections ───────────────────────────────────────────────────────── */
section { margin-bottom: 44px; scroll-margin-top: 70px; }
section h2 { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 14px; padding-bottom: 9px; border-bottom: 2px solid var(--border); }
section h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 0 7px; }
p { margin-bottom: 12px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 20px; margin-bottom: 12px; color: var(--muted); }
li { margin-bottom: 5px; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.card.highlight { border-left: 4px solid var(--accent); background: #fffdf0; }
.card.warn { border-left: 4px solid #e07000; background: #fff8f0; }
.card strong { color: var(--text); }

/* ── Table ──────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
th { background: #0a0e1a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 9px 12px; text-align: left; }
td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
tr:nth-child(even) td { background: var(--bg-alt); }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer { background: #0a0e1a; color: rgba(255,255,255,.7); text-align: center; padding: 28px 24px; font-size: 13px; line-height: 1.8; }
footer a { color: rgba(255,255,255,.85); text-decoration: underline; }
footer p { color: rgba(255,255,255,.7); margin-bottom: 0; }

a { color: #2c5cc5; }
a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  table { font-size: 13px; }
  th, td { padding: 7px 9px; }
}

.mb-40 { margin-bottom: 40px; }
.footer-legal { margin-top: 10px; font-size: 11px; opacity: .8; }
