/* Стили для статических страниц /legal/*.html */
:root {
  --bg: #f6f4f1;
  --text: #17131d;
  --text-muted: rgba(23, 19, 29, 0.57);
  --accent-hover: #6f2dbd;
  --border: rgba(29, 23, 36, 0.12);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: "Manrope";
  src:
    url("/fonts/Manrope-VariableFont_wght.woff2") format("woff2"),
    url("/fonts/Manrope-VariableFont_wght.woff") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-body {
  background: var(--bg);
}
.legal-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.legal-header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo-text {
  line-height: 1.1;
}
.logo-full {
  display: none;
}
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.legal-back {
  margin: 0 0 1.25rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.legal-back-link:hover {
  background: #f1eeea;
  color: var(--text);
  text-decoration: none;
}

.legal-back-link:active {
  transform: scale(0.97);
}
.legal-doc h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.legal-doc .legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.legal-doc h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.65rem;
}
.legal-doc p,
.legal-doc li {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.85rem;
  line-height: 1.6;
}
.legal-doc ol {
  padding-left: 1.25rem;
}
.legal-doc ol li {
  margin-bottom: 0.65rem;
}
.legal-doc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc a:hover {
  color: var(--accent-hover);
}
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0.5rem;
  font-size: 0.8rem;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--text);
  text-decoration: underline;
}

.cookie-prefs {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.cookie-prefs-status {
  margin: 0 0 0.85rem !important;
  font-size: 0.95rem;
}
.cookie-prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cookie-prefs-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.cookie-prefs-accept,
.cookie-prefs-reject {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.cookie-prefs-accept:hover,
.cookie-prefs-reject:hover {
  border-color: #a3a3a3;
  background: #f5f5f5;
}
.cookie-prefs-btn.is-selected {
  border-color: #0a0a0b;
  background: #0a0a0b;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(10, 10, 11, 0.12);
}
.cookie-prefs-btn.is-selected:hover {
  background: #262626;
  border-color: #262626;
}
.cookie-prefs-hint {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}
@media (max-width: 439px) {
  .cookie-prefs-actions {
    flex-direction: column;
  }
  .cookie-prefs-btn {
    width: 100%;
  }
}
