/* =========================================================
   LEGAL PAGES — privacy.html, terms.html и т.п.
   ========================================================= */

.legal-page {
    background: var(--bg);
}

/* ---------- Hero-зона сверху ---------- */
.legal {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
}
.legal::before {
    content: "";
    position: absolute;
    top: -220px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 500px;
    background: radial-gradient(circle, rgba(0,240,255,.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.legal__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}
.breadcrumbs a {
    color: var(--muted);
    transition: color .2s var(--ease);
}
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs span[aria-current] { color: var(--text); }

/* ---------- Заголовок ---------- */
.legal__title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 40%, #7a7a9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.legal__updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 36px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

/* ---------- Контент ---------- */
.legal__content {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.75;
}
.legal__content section + section {
    margin-top: 34px;
}
.legal__content h2 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--neon);
    margin-bottom: 12px;
    padding-top: 6px;
}
.legal__content p {
    color: #c9c9dd;
    margin-bottom: 12px;
}
.legal__content p:last-child { margin-bottom: 0; }

.legal__content ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 14px;
    padding-left: 6px;
    list-style: none;
}
.legal__content ul li {
    position: relative;
    padding-left: 22px;
    color: #c9c9dd;
}
.legal__content ul li::before {
    content: "";
    position: absolute;
    left: 0; top: .72em;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--neon), var(--neon-3));
    transform: rotate(45deg);
}

.legal__content a {
    color: var(--neon);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s var(--ease);
}
.legal__content a:hover { color: #fff; }

.legal__content b { color: #fff; }

.legal__content code {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    color: var(--neon);
}

/* ---------- Кнопки «назад» ---------- */
.legal__back {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
    .legal { padding: 40px 0 70px; }
    .legal__content { font-size: 15px; }
    .legal__content h2 { font-size: 17px; }
    .legal__back .btn { flex: 1 1 100%; }
}