/* legal_page.css */

.fl-legal-page {
    position: relative;
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 84% 8%,
            rgba(127, 162, 255, 0.16) 0%,
            rgba(127, 162, 255, 0.06) 26%,
            rgba(247, 248, 250, 0.00) 54%
        ),
        radial-gradient(
            circle at 8% 18%,
            rgba(15, 42, 95, 0.06) 0%,
            rgba(15, 42, 95, 0.025) 26%,
            rgba(247, 248, 250, 0.00) 56%
        ),
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F7F8FA 44%,
            #EEF2F7 100%
        );

    overflow: hidden;
}

.fl-legal-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.035) 0,
            rgba(15, 23, 42, 0.00) 190px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.025) 0,
            rgba(15, 23, 42, 0.025) 1px,
            transparent 1px,
            transparent 96px
        );

    opacity: 0.42;
}

.fl-legal-page::after {
    content: "";
    position: absolute;
    top: 110px;
    right: max(-120px, -7vw);

    width: clamp(280px, 28vw, 520px);
    height: clamp(280px, 28vw, 520px);

    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(127, 162, 255, 0.16) 0%,
            rgba(127, 162, 255, 0.06) 38%,
            rgba(127, 162, 255, 0.00) 70%
        );

    pointer-events: none;
}

.fl-legal-inner {
    position: relative;
    z-index: 2;

    width: min(1040px, calc(100% - var(--fl-page-x) * 2));
    margin: 0 auto;

    padding:
        clamp(132px, 11vw, 164px)
        0
        clamp(72px, 7vw, 112px);
}

/* ================================
HERO
================================ */

.fl-legal-hero {
    max-width: 880px;
    margin-bottom: clamp(38px, 4vw, 56px);

    color: #111722;
}

.fl-legal-kicker {
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 12px;

    border-radius: 999px;
    background: rgba(127, 162, 255, 0.12);
    border: 1px solid rgba(127, 162, 255, 0.22);

    color: #4D73D9;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 820;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.fl-legal-title {
    max-width: 840px;
    margin: 0;

    color: #111722;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: clamp(36px, 4.2vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 760;
}

.fl-legal-subtitle {
    max-width: 720px;
    margin: 24px 0 0;

    color: #687083;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.65;
    letter-spacing: -0.012em;
    font-weight: 400;
}

/* ================================
DOCUMENT CARD
================================ */

.fl-legal-card {
    position: relative;

    padding:
        clamp(34px, 4vw, 58px)
        clamp(24px, 4vw, 58px);

    border-radius: clamp(28px, 3vw, 42px);

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);

    box-shadow:
        0 24px 80px rgba(15, 23, 42, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;

    backdrop-filter: blur(18px);
}

.fl-legal-card::before {
    content: "";
    position: absolute;
    left: clamp(24px, 4vw, 58px);
    right: clamp(24px, 4vw, 58px);
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(127, 162, 255, 0.00) 0%,
            rgba(127, 162, 255, 0.64) 38%,
            rgba(127, 162, 255, 0.18) 100%
        );
}

.fl-legal-note {
    margin: 0 0 34px;
    padding: 20px 22px;

    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(15, 42, 95, 0.055) 0%,
            rgba(127, 162, 255, 0.075) 100%
        );
    border: 1px solid rgba(15, 42, 95, 0.10);

    color: #4F5868;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.62;
    letter-spacing: -0.01em;
}

.fl-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 36px;
}

.fl-legal-meta span {
    min-height: 30px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;

    border-radius: 999px;
    background: #EEF1F5;
    border: 1px solid rgba(15, 42, 95, 0.06);

    color: #687083;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 720;
    letter-spacing: -0.01em;
}

/* ================================
TYPOGRAPHY
================================ */

.fl-legal-content {
    color: #20242C;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.fl-legal-content h2 {
    margin:
        clamp(34px, 4vw, 52px)
        0
        18px;

    color: #111722;

    font-size: clamp(22px, 1.7vw, 30px);
    line-height: 1.14;
    letter-spacing: -0.045em;
    font-weight: 740;
}

.fl-legal-content h2:first-child {
    margin-top: 0;
}

.fl-legal-content p {
    margin: 0;

    color: #4F5868;

    font-size: 15px;
    line-height: 1.72;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.fl-legal-content p + p {
    margin-top: 14px;
}

.fl-legal-content strong {
    color: #20242C;
    font-weight: 740;
}

.fl-legal-content ul {
    margin: 16px 0 0;
    padding: 0;

    display: grid;
    gap: 9px;

    list-style: none;
}

.fl-legal-content li {
    position: relative;

    padding-left: 18px;

    color: #4F5868;

    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

.fl-legal-content li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.72em;

    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: #7FA2FF;
}

.fl-legal-content a {
    color: #4D73D9;
    text-decoration: none;
}

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

/* ================================
TABLE
================================ */

.fl-legal-table-wrap {
    width: 100%;
    overflow-x: auto;

    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 42, 95, 0.10);
    background: #FFFFFF;
}

.fl-legal-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.fl-legal-table th,
.fl-legal-table td {
    padding: 15px 16px;

    border-bottom: 1px solid rgba(15, 42, 95, 0.09);

    text-align: left;
    vertical-align: top;

    color: #4F5868;

    font-size: 13px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.fl-legal-table th {
    background: rgba(15, 42, 95, 0.045);

    color: #20242C;

    font-weight: 760;
}

.fl-legal-table tr:last-child td {
    border-bottom: 0;
}

/* ================================
FOOTER NOTE
================================ */

.fl-legal-footer-note {
    margin-top: 44px;
    padding-top: 28px;

    border-top: 1px solid rgba(15, 42, 95, 0.12);

    color: #687083;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

/* ================================
MENU ADJUSTMENT FOR LEGAL PAGE
если меню наследует цвета от страницы
================================ */

body:has(.fl-legal-page) .fl-menu,
body:has(.fl-legal-page) .gen-menu,
body:has(.fl-legal-page) .lk-header,
body:has(.fl-legal-page) header {
    color: #111722;
}

/* ================================
RESPONSIVE
================================ */

@media (max-width: 900px) {
    .fl-legal-inner {
        width: calc(100% - var(--fl-page-x) * 2);

        padding:
            118px
            0
            76px;
    }

    .fl-legal-card {
        border-radius: 30px;
    }
}

@media (max-width: 620px) {
    .fl-legal-page {
        background:
            radial-gradient(
                circle at 76% 7%,
                rgba(127, 162, 255, 0.15) 0%,
                rgba(127, 162, 255, 0.05) 30%,
                rgba(247, 248, 250, 0.00) 60%
            ),
            linear-gradient(
                180deg,
                #FFFFFF 0%,
                #F7F8FA 46%,
                #EEF2F7 100%
            );
    }

    .fl-legal-page::before {
        background:
            linear-gradient(
                180deg,
                rgba(15, 23, 42, 0.03) 0,
                rgba(15, 23, 42, 0.00) 160px
            );
    }

    .fl-legal-page::after {
        top: 76px;
        right: -170px;

        width: 320px;
        height: 320px;
    }

    .fl-legal-inner {
        padding:
            106px
            0
            68px;
    }

    .fl-legal-hero {
        margin-bottom: 34px;
    }

    .fl-legal-kicker {
        margin-bottom: 18px;
        padding: 7px 10px;

        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .fl-legal-title {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.04;
        letter-spacing: -0.052em;
    }

    .fl-legal-subtitle {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.62;
    }

    .fl-legal-card {
        padding: 28px 20px;
        border-radius: 26px;
    }

    .fl-legal-meta {
        gap: 8px;
        margin-bottom: 28px;
    }

    .fl-legal-meta span {
        min-height: 28px;
        padding: 0 10px;

        font-size: 11.5px;
    }

    .fl-legal-note {
        padding: 18px 18px;
        border-radius: 20px;

        font-size: 13.5px;
        line-height: 1.62;
    }

    .fl-legal-content h2 {
        margin:
            32px
            0
            16px;

        font-size: 23px;
        line-height: 1.16;
        letter-spacing: -0.04em;
    }

    .fl-legal-content p,
    .fl-legal-content li {
        font-size: 14px;
        line-height: 1.68;
    }

    .fl-legal-table-wrap {
        border-radius: 16px;
    }

    .fl-legal-table th,
    .fl-legal-table td {
        padding: 13px 14px;
        font-size: 12.5px;
    }
}