html,
body {
    background: #f7f9fc;
    color: #102a43;
}

.legal-page {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 96px;
    color: #102a43;
}

.legal-page__head {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 36px 40px;
    border: 1px solid #dce6ef;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #ffffff 55%,
            #eef6ff 100%
        );
    box-shadow:
        0 18px 50px rgba(16, 42, 67, .07),
        0 2px 8px rgba(16, 42, 67, .04);
}

.legal-page__head::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -110px;
    border-radius: 999px;
    background: rgba(22, 115, 223, .08);
    pointer-events: none;
}

.legal-page__head h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #102a43;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.legal-page__head > p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.legal-page__content {
    overflow: hidden;
    padding: 8px 40px;
    border: 1px solid #dfe7ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 18px 50px rgba(16, 42, 67, .06),
        0 2px 8px rgba(16, 42, 67, .035);
}

.legal-page__content section {
    padding: 30px 0;
    border-top: 1px solid #e2e9f0;
}

.legal-page__content section:first-child {
    border-top: 0;
}

.legal-page__content h2 {
    margin: 0 0 14px;
    color: #102a43;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.legal-page__content p {
    max-width: 790px;
    margin: 0 0 14px;
    color: #52657a;
    font-size: 15.5px;
    line-height: 1.78;
}

.legal-page__content p:last-child {
    margin-bottom: 0;
}

.legal-page__content a {
    color: #1673df;
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: 3px;
}

.legal-page__content a:hover {
    color: #0f63c5;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .legal-page {
        width: min(100% - 24px, 960px);
        padding: 42px 0 64px;
    }

    .legal-page__head {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .legal-page__content {
        padding: 4px 24px;
        border-radius: 20px;
    }

    .legal-page__content section {
        padding: 26px 0;
    }

    .legal-page__content h2 {
        font-size: 19px;
    }

    .legal-page__content p {
        font-size: 15px;
        line-height: 1.72;
    }
}
