/* Standalone styling for legal pages (privacy, terms).
   Mirrors the app design tokens but is self-contained — these pages are
   served outside the SPA and must render without app.js / style.css. */

:root {
  --bg: #111111;
  --card: #1A1A1A;
  --border: #2E2E2E;
  --fg: #FFFFFF;
  --muted-fg: #B8B9B6;
  --muted: #666666;
  --primary: #FF8400;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding: 48px 20px 96px;
}

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

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

header img { width: 32px; height: 32px; }

header .brand { font-weight: 600; font-size: 15px; }

header a { margin-left: auto; color: var(--muted-fg); text-decoration: none; font-size: 13px; }
header a:hover { color: var(--primary); }

/* Language switch — a real crawlable link between the EN and RU URLs, mirroring
   the landing topbar toggle. The toggle grabs margin-left:auto to push the
   right-hand group (toggle + "back to app") to the edge; the back link then
   follows it with a fixed gap (class="back" overrides the auto margin so the
   two don't split the free space between them). */
header a.lang-toggle {
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 11px;
  transition: border-color .15s ease, color .15s ease;
}
header a.lang-toggle:hover { color: var(--primary); border-color: var(--primary); }
header a.back { margin-left: 18px; }

h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }

.updated { color: var(--muted); font-size: 12px; margin-bottom: 36px; }

h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 12px;
}

p { color: var(--muted-fg); margin-bottom: 14px; }

ul { color: var(--muted-fg); margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }

a.inline { color: var(--primary); text-decoration: none; }
a.inline:hover { text-decoration: underline; }

strong { color: var(--fg); font-weight: 600; }

.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
  color: var(--muted-fg);
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
