:root {
  --bg: #0e0f13;
  --panel: #171920;
  --line: #2a2d38;
  --text: #eceef3;
  --muted: #9aa1b0;
  --accent: #ff8a00;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.brand span { color: var(--accent); }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); }

main { padding: 40px 0 64px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.lang-switch { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 14px 56px; position: relative; margin: 0;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #14100a; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}

.legal-links {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0;
}
.legal-links a {
  display: inline-block; padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.legal-links a:hover { border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td, code { overflow-wrap: anywhere; }
code { font-size: .9em; color: var(--text); }

section.lang + section.lang { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  th, td { padding: 8px 6px; }
}
