/* Оформление юридических страниц: terms.html, privacy.html. Без зависимостей
   от приложения — страницы статичные и читаются без JavaScript. */
:root {
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #2563eb;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --muted: #9ca3af;
    --brand: #60a5fa;
    --border: #374151;
    --bg: #111827;
    --bg-soft: #1f2937;
  }
}

* {
  box-sizing: border-box;
}

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

header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

header .inner,
main,
footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

a {
  color: var(--brand);
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.25;
}

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

h2 {
  margin: 32px 0 8px;
  font-size: 19px;
}

p,
li {
  margin: 0 0 10px;
}

ul,
ol {
  padding-left: 22px;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 24px;
}
