.legal-page { max-width: 1180px; }

/* Документальные страницы отображаются сразу и не участвуют в общей
   анимации появления блоков при прокрутке. */
html.js-on .legal-page > * {
    opacity: 1;
    transform: none;
    transition: none;
}

.legal-hero { padding-block: 64px; }
.legal-hero__inner { max-width: 820px; }
.legal-hero__eyebrow { color: #93c5fd; margin-bottom: 14px; }
.legal-hero .hero-h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 18px; }
.legal-hero .hero-sub { max-width: 760px; margin: 0; }

.legal-document {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 64px);
}
.legal-intro {
    margin: 0 0 42px;
    padding: 22px 24px;
    border-left: 4px solid #1a56db;
    border-radius: 0 14px 14px 0;
    background: rgba(26, 86, 219, .06);
    color: #3d5a8a;
    font-size: 16px;
    line-height: 1.75;
}
.legal-section + .legal-section {
    margin-top: 38px;
    padding-top: 38px;
    border-top: 1px solid rgba(26, 86, 219, .1);
}
.legal-section h2 {
    margin: 0 0 16px;
    color: #0d1a3a;
    font: 800 clamp(20px, 2.4vw, 28px)/1.25 'Montserrat', sans-serif;
    letter-spacing: -.02em;
}
.legal-section p,
.legal-section li {
    color: #4b607f;
    font-size: 15px;
    line-height: 1.78;
}
.legal-section p { margin: 0 0 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 22px; }
.legal-section li + li { margin-top: 10px; }
.legal-section strong { color: #1d3152; }
.legal-section a { color: #1a56db; text-underline-offset: 3px; }
.legal-table-wrap { margin: 20px 0; overflow-x: auto; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    color: #4b607f;
    font-size: 14px;
    line-height: 1.6;
}
.legal-table th,
.legal-table td {
    padding: 16px;
    border: 1px solid rgba(26, 86, 219, .14);
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: rgba(26, 86, 219, .08);
    color: #1d3152;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}
.legal-contacts {
    padding: 28px;
    border: 1px solid rgba(26, 86, 219, .12) !important;
    border-radius: 18px;
    background: rgba(26, 86, 219, .045);
}
.legal-updated {
    margin: 42px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(26, 86, 219, .1);
    color: #7a98c0;
    font-size: 13px;
}
.legal-updated--top {
    margin: 0 0 18px;
    padding-top: 0;
    border-top: 0;
}

html.dark .legal-intro {
    background: rgba(77, 132, 255, .1);
    border-left-color: #4d84ff;
    color: #b2c1d8;
}
html.dark .legal-section + .legal-section,
html.dark .legal-updated { border-top-color: rgba(255, 255, 255, .09); }
html.dark .legal-section h2 { color: #e6eef5; }
html.dark .legal-section p,
html.dark .legal-section li { color: #b2c1d8; }
html.dark .legal-section strong { color: #fff; }
html.dark .legal-section a { color: #7aa9ff; }
html.dark .legal-table { color: #b2c1d8; }
html.dark .legal-table th,
html.dark .legal-table td { border-color: rgba(255, 255, 255, .1); }
html.dark .legal-table th { background: rgba(77, 132, 255, .12); color: #fff; }
html.dark .legal-contacts {
    border-color: rgba(77, 132, 255, .22) !important;
    background: rgba(77, 132, 255, .07);
}
html.dark .legal-updated { color: #72869f; }

@media (max-width: 600px) {
    .legal-hero { padding: 42px 24px; }
    .legal-hero .hero-h1 { font-size: clamp(29px, 9vw, 42px); overflow-wrap: break-word; }
    .legal-document { padding: 26px 22px; }
    .legal-intro { margin-bottom: 32px; padding: 18px; font-size: 14px; }
    .legal-section + .legal-section { margin-top: 30px; padding-top: 30px; }
    .legal-section p,
    .legal-section li { font-size: 14px; line-height: 1.7; }
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td { display: block; width: 100%; }
    .legal-table thead { display: none; }
    .legal-table tr { border: 1px solid rgba(26, 86, 219, .14); border-radius: 14px; overflow: hidden; }
    .legal-table td { border: 0; border-bottom: 1px solid rgba(26, 86, 219, .1); }
    .legal-table td:last-child { border-bottom: 0; }
    .legal-table td::before {
        display: block;
        margin-bottom: 6px;
        color: #1a56db;
        font: 800 11px 'Montserrat', sans-serif;
        letter-spacing: .08em;
        text-transform: uppercase;
        content: attr(data-label);
    }
    html.dark .legal-table tr { border-color: rgba(255, 255, 255, .1); }
    html.dark .legal-table td { border-bottom-color: rgba(255, 255, 255, .08); }
    html.dark .legal-table td::before { color: #7aa9ff; }
    .legal-contacts { padding: 20px; }
}
