/* Стили страниц Terms / Privacy — Editorial system.
   Используют CSS-переменные из common.css (--text, --text2, --text3, --blue,
   --border, --mono). */

.legal-main {
    padding: 56px 0 96px;
}

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

/* Двуязычный контент: показываем блок, соответствующий текущему языку
   (<html lang>). По умолчанию виден английский, русский скрыт — язык
   проставляется inline-скриптом в <head> до рендера, поэтому мигания нет. */
.legal-lang[data-lang="ru"] { display: none; }
html[lang="ru"] .legal-lang[data-lang="ru"] { display: block; }
html[lang="ru"] .legal-lang[data-lang="en"] { display: none; }

.legal-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);
}

/* Дата последнего обновления под заголовком */
.legal-updated {
    color: var(--text3);
    font-family: var(--mono);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 44px;
}

.legal-content h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 48px 0 14px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.legal-content h2:first-of-type {
    padding-top: 0;
    border-top: none;
    margin-top: 32px;
}

.legal-content h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 28px 0 8px;
    color: var(--text);
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text2);
    margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text2);
    margin: 0 0 8px;
}

.legal-content a {
    color: var(--blue);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 600px) {
    .legal-main { padding: 36px 0 64px; }
}
