:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171a20;
  --panel-2: #1f232b;
  --text: #f2f4f8;
  --muted: #a7b0bf;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #3ea6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
}

.header-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

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

.logo h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0;
}

.nav-pills {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

main {
  flex: 1 0 auto;
  padding: 32px 20px 60px;
}

.legal-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.legal-wrap h1 {
  font-size: 26px;
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 13px;
}

.legal-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-section h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.legal-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-section li {
  margin-bottom: 6px;
}

footer {
  border-top: 1px solid var(--line);
  background: #101219;
  padding: 16px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 720px) {
  .header-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nav-pills {
    justify-content: flex-start;
  }
  .legal-wrap {
    padding: 22px;
  }
}

.seo-telegram-cta {
    margin-top: 10px;
}

.seo-telegram-cta a {
    color: #7ec8e3;
    font-size: 13px;
    text-decoration: none;
}

.seo-telegram-cta a:hover {
    text-decoration: underline;
}
