/* ══════════════════════════════════════════════════════════════════
   KinoDron — Юридические страницы (terms / privacy / copyright)
   Стиль: как сайт (тёмная/светлая, --accent, --surface, --radius)
   ══════════════════════════════════════════════════════════════════ */

/* ─── Контейнер страницы (полная ширина) ────────────────────── */
.kino-legal {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(100px, 12vw, 150px) 0 clamp(40px, 6vw, 80px);
    background: var(--surface-sunk, #101013);
    overflow: hidden;
    min-height: 60vh;
}

/* Blur-круги фона */
.kino-legal::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 10% 5%, rgba(160,0,255,.10), transparent 60%),
        radial-gradient(ellipse 45% 35% at 90% 95%, rgba(206,94,255,.08), transparent 60%);
}

/* Прогресс-бар */
.kino-legal__progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent, #a000ff), var(--accent2, #ce5eff));
    z-index: 100;
    transition: width .1s linear;
    box-shadow: 0 0 12px rgba(160,0,255,.6);
}

/* ─── Wrap (1280px) ─────────────────────────────────────────── */
.kino-legal__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--pad, 24px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 40px);
}

/* ─── HERO (главный блок с контактами) ──────────────────────── */
.kino-legal__hero {
    padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
    background:
        linear-gradient(135deg, rgba(160,0,255,.06) 0%, rgba(206,94,255,.03) 100%),
        var(--surface, #141418);
    border: 1px solid rgba(160,0,255,.18);
    border-radius: calc(var(--radius, 16px) + 4px);
    box-shadow:
        0 32px 64px -24px rgba(160,0,255,.30),
        var(--shadow, 0 24px 48px -12px rgba(0,0,0,.6));
    position: relative;
    overflow: hidden;
    animation: kinoLegalAppear .7s cubic-bezier(.2,.8,.2,1);
}
.kino-legal__hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
    background-size: 200% 100%;
    animation: kinoLegalStripe 4s ease-in-out infinite;
}
@keyframes kinoLegalAppear {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes kinoLegalStripe {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 0%; }
}

.kino-legal__hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent2, #ce5eff);
    margin-bottom: 14px;
}
.kino-legal__hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 8px rgba(160,0,255,.7);
}

.kino-legal__hero-title {
    font-family: var(--serif, "Playfair Display", Georgia, serif);
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    background: linear-gradient(135deg, var(--text, #F4F1EC) 0%, var(--accent3, #e4a8ff) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kino-legal__hero-lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--soft, #CFCAC2);
    margin: 0 0 24px;
    max-width: 640px;
}

/* ─── Контакты ──────────────────────────────────────────────── */
.kino-legal__contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.kino-legal__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(160,0,255,.06);
    border: 1px solid rgba(160,0,255,.16);
    border-radius: 14px;
    text-decoration: none !important;
    color: var(--soft, #CFCAC2) !important;
    transition: border-color .2s, background .2s, transform .15s;
}
.kino-legal__contact:hover {
    border-color: rgba(160,0,255,.4);
    background: rgba(160,0,255,.1);
    transform: translateY(-2px);
}
.kino-legal__contact-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(160,0,255,.2), rgba(206,94,255,.15));
    border: 1px solid rgba(160,0,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent2, #ce5eff);
    font-size: 16px;
}
.kino-legal__contact-body { flex: 1; min-width: 0; }
.kino-legal__contact-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted, #A29E97);
    margin-bottom: 4px;
}
.kino-legal__contact-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #F4F1EC);
    word-break: break-all;
}
.kino-legal__contact-copy {
    flex-shrink: 0;
    padding: 8px 12px;
    border: none;
    background: rgba(160,0,255,.15);
    border-radius: 8px;
    color: var(--accent3, #e4a8ff);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--sans, "Manrope", system-ui, sans-serif);
    transition: background .2s, transform .15s;
}
.kino-legal__contact-copy:hover {
    background: rgba(160,0,255,.3);
    transform: scale(1.05);
}
.kino-legal__contact-copy.is-copied {
    background: rgba(124,196,148,.25);
    color: var(--positive, #7cc494);
}

/* ─── Body (оглавление + контент) ──────────────────────────── */
.kino-legal__body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}

/* Оглавление */
.kino-legal__toc {
    position: sticky;
    top: 120px;
    padding: 20px;
    background: var(--surface, #141418);
    border: 1px solid var(--line2, rgba(244,241,236,.14));
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-tiny, 0 4px 14px rgba(0,0,0,.35));
}
.kino-legal__toc-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent2, #ce5eff);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line, rgba(244,241,236,.08));
}
.kino-legal__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kino-legal__toc-list a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--soft, #CFCAC2) !important;
    text-decoration: none !important;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}
.kino-legal__toc-list a:hover {
    color: var(--text, #F4F1EC) !important;
    background: rgba(160,0,255,.06);
}
.kino-legal__toc-list a.is-active {
    color: var(--accent3, #e4a8ff) !important;
    border-left-color: var(--accent, #a000ff);
    background: rgba(160,0,255,.08);
    font-weight: 600;
}

/* Контент */
.kino-legal__content h2 {
    font-family: var(--serif, "Playfair Display", Georgia, serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text, #F4F1EC) !important;
    margin: clamp(32px, 4vw, 48px) 0 16px;
    padding-left: 20px;
    position: relative;
    scroll-margin-top: 120px;
}
.kino-legal__content h2::before {
    content: '';
    position: absolute;
    left: 0; top: .2em; bottom: .2em;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    box-shadow: 0 0 12px rgba(160,0,255,.5);
}
.kino-legal__content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--soft, #CFCAC2) !important;
    margin: 0 0 14px;
}
.kino-legal__content strong {
    color: var(--text, #F4F1EC) !important;
    font-weight: 700;
}
.kino-legal__content a {
    color: var(--accent2, #ce5eff) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kino-legal__card {
    padding: 18px 22px;
    margin: 20px 0;
    background: rgba(160,0,255,.05);
    border: 1px solid rgba(160,0,255,.18);
    border-left: 3px solid var(--accent, #a000ff);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--soft, #CFCAC2) !important;
}
.kino-legal__card strong { color: var(--accent3, #e4a8ff) !important; }

/* ─── CTA (внизу) ───────────────────────────────────────────── */
.kino-legal__cta {
    padding: clamp(28px, 4vw, 44px);
    background:
        linear-gradient(135deg, rgba(160,0,255,.10) 0%, rgba(206,94,255,.05) 100%),
        var(--surface, #141418);
    border: 1px solid rgba(160,0,255,.2);
    border-radius: calc(var(--radius, 16px) + 4px);
    text-align: center;
    box-shadow: 0 24px 48px -16px rgba(160,0,255,.30);
    position: relative;
    overflow: hidden;
}
.kino-legal__cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}
.kino-legal__cta h3 {
    font-family: var(--serif, "Playfair Display", Georgia, serif) !important;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--text, #F4F1EC) !important;
    margin: 0 0 10px !important;
}
.kino-legal__cta p {
    font-size: 15px;
    color: var(--soft, #CFCAC2) !important;
    margin: 0 0 20px !important;
}
.kino-legal__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.kino-legal__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: linear-gradient(135deg, var(--accent, #a000ff), var(--accent2, #ce5eff));
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--sans, "Manrope", system-ui, sans-serif);
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 8px 24px -8px rgba(160,0,255,.5);
    border: none;
    cursor: pointer;
}
.kino-legal__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px -8px rgba(160,0,255,.7);
}
.kino-legal__btn--glass {
    background: transparent;
    border: 1px solid rgba(160,0,255,.4);
    color: var(--accent3, #e4a8ff) !important;
    box-shadow: none;
}
.kino-legal__btn--glass:hover {
    background: rgba(160,0,255,.1);
}

/* Кнопка «Наверх» */
.kino-legal__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px auto 0;
    padding: 12px 24px;
    background: var(--surface, #141418);
    border: 1px solid var(--line2, rgba(244,241,236,.16));
    border-radius: 999px;
    color: var(--soft, #CFCAC2) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s, border-color .2s, transform .15s;
    align-self: center;
}
.kino-legal__top:hover {
    color: var(--accent2, #ce5eff) !important;
    border-color: rgba(160,0,255,.4);
    transform: translateY(-1px);
}

/* ─── Светлая тема ─────────────────────────────────────────── */
[data-theme="light"] .kino-legal { background: #f5f5f7; }
[data-theme="light"] .kino-legal::before {
    background:
        radial-gradient(ellipse 55% 40% at 10% 5%, rgba(160,0,255,.06), transparent 60%),
        radial-gradient(ellipse 45% 35% at 90% 95%, rgba(206,94,255,.04), transparent 60%);
}
[data-theme="light"] .kino-legal__hero,
[data-theme="light"] .kino-legal__toc,
[data-theme="light"] .kino-legal__cta {
    background: #ffffff;
    border-color: #e5e5ea;
}
[data-theme="light"] .kino-legal__hero-title {
    background: linear-gradient(135deg, #1a1a1f 0%, var(--accent, #a000ff) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .kino-legal__hero-lead,
[data-theme="light"] .kino-legal__content p,
[data-theme="light"] .kino-legal__card {
    color: #4a4a52 !important;
}
[data-theme="light"] .kino-legal__content h2,
[data-theme="light"] .kino-legal__cta h3 {
    color: #1a1a1f !important;
}
[data-theme="light"] .kino-legal__contact {
    background: rgba(160,0,255,.04);
}
[data-theme="light"] .kino-legal__contact-value {
    color: #1a1a1f;
}
[data-theme="light"] .kino-legal__toc-list a {
    color: #5a5a62 !important;
}

/* ─── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .kino-legal__body {
        grid-template-columns: 1fr;
    }
    .kino-legal__toc {
        position: relative;
        top: 0;
    }
    .kino-legal__toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .kino-legal__toc-list a {
        border-left: none;
        border: 1px solid var(--line2, rgba(244,241,236,.14));
        border-radius: 999px;
        padding: 6px 14px;
        font-size: 12px;
    }
    .kino-legal__toc-list a.is-active {
        border-color: var(--accent, #a000ff);
        background: rgba(160,0,255,.12);
    }
}

@media (max-width: 640px) {
    .kino-legal {
        padding: clamp(90px, 14vw, 130px) var(--pad, 16px) clamp(40px, 6vw, 60px);
    }
    .kino-legal__hero { padding: 28px 20px; }
    .kino-legal__hero-title { font-size: 26px; }
    .kino-legal__contacts { grid-template-columns: 1fr; }
    .kino-legal__cta-actions { flex-direction: column; }
    .kino-legal__btn { width: 100%; justify-content: center; }
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .kino-legal__hero, .kino-legal__hero::before { animation: none !important; }
    .kino-legal__btn, .kino-legal__top { transition: none !important; }
}
