:root{
    --legal-text:#40383a;
    --legal-soft:#84787a;
    --legal-faint:#a09597;

    --legal-pink:#a96d78;
    --legal-pink-dark:#78454f;
    --legal-pink-light:#f5e8ea;

    --legal-border:#e9e1e0;
    --legal-surface:#ffffff;
    --legal-background:#f7f3f4;

    --legal-radius-small:14px;
    --legal-radius-medium:21px;
    --legal-radius-large:30px;
}


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

    padding:
        160px
        clamp(20px,5vw,80px)
        100px;

    color:var(--legal-text);

    background:
        radial-gradient(
            circle at 92% 4%,
            rgba(197,139,149,.16),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #faf8f8,
            var(--legal-background)
        );
}


.legal-container{
    width:100%;
    max-width:1450px;
    margin:0 auto;
}


.legal-hero{
    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        250px;

    align-items:end;

    gap:50px;

    margin-bottom:42px;
    padding-bottom:38px;

    border-bottom:
        1px solid
        var(--legal-border);
}


.legal-hero-main{
    max-width:900px;
}


.legal-eyebrow{
    display:inline-flex;

    padding:8px 14px;

    border-radius:999px;

    color:#8c5962;
    background:var(--legal-pink-light);

    font-size:10px;
    font-weight:700;
    letter-spacing:.17em;
}


.legal-hero h1{
    max-width:850px;

    margin:18px 0 20px;

    color:#3f3638;

    font-size:
        clamp(
            40px,
            5vw,
            70px
        );

    line-height:1.02;
    font-weight:450;
    letter-spacing:-.05em;
}


.legal-lead{
    max-width:760px;

    margin:0;

    color:var(--legal-soft);

    font-size:17px;
    line-height:1.75;
}


.legal-version-card{
    display:flex;
    min-height:170px;

    padding:23px;

    flex-direction:column;
    justify-content:flex-end;

    border:
        1px solid
        var(--legal-border);

    border-radius:
        var(--legal-radius-medium);

    background:
        rgba(255,255,255,.78);

    box-shadow:
        0 18px 45px
        rgba(62,47,51,.06);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}


.legal-version-card span{
    color:var(--legal-faint);

    font-size:10px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}


.legal-version-card strong{
    margin:10px 0 4px;

    color:var(--legal-pink-dark);

    font-size:42px;
    font-weight:500;
}


.legal-version-card small{
    color:var(--legal-soft);
    line-height:1.5;
}


.legal-layout{
    display:grid;

    grid-template-columns:
        250px
        minmax(0,1fr);

    align-items:start;

    gap:45px;
}


.legal-navigation{
    position:sticky;
    top:150px;

    display:flex;
    padding:21px;

    flex-direction:column;
    gap:5px;

    border:
        1px solid
        var(--legal-border);

    border-radius:
        var(--legal-radius-medium);

    background:
        rgba(255,255,255,.82);

    box-shadow:
        0 18px 45px
        rgba(62,47,51,.05);
}


.legal-navigation-title{
    margin-bottom:10px;
    padding:0 10px 12px;

    border-bottom:
        1px solid
        var(--legal-border);

    color:var(--legal-faint);

    font-size:10px;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
}


.legal-navigation a{
    padding:10px;

    border-radius:10px;

    color:#776a6c;

    font-size:12px;
    line-height:1.4;
    text-decoration:none;

    transition:
        color .22s ease,
        background .22s ease,
        transform .22s ease;
}


.legal-navigation a:hover{
    color:#70464e;
    background:#f7ecee;
    transform:translateX(3px);
}


.legal-content{
    min-width:0;
}


.legal-section{
    position:relative;

    margin-bottom:22px;
    padding:
        clamp(25px,3vw,42px);

    scroll-margin-top:150px;

    border:
        1px solid
        var(--legal-border);

    border-radius:
        var(--legal-radius-large);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fdfafa
        );

    box-shadow:
        0 20px 55px
        rgba(62,47,51,.06);
}


.legal-section-number{
    display:inline-flex;
    width:40px;
    height:40px;

    align-items:center;
    justify-content:center;

    margin-bottom:20px;

    border-radius:50%;

    color:#94616a;
    background:var(--legal-pink-light);

    font-size:11px;
    font-weight:700;
}


.legal-section h2{
    margin:0 0 21px;

    color:#42383a;

    font-size:
        clamp(
            25px,
            3vw,
            36px
        );

    line-height:1.16;
    font-weight:500;
    letter-spacing:-.035em;
}


.legal-section h3{
    margin:0;

    color:#4d4143;

    font-size:18px;
    font-weight:600;
}


.legal-section p{
    margin:
        0 0 17px;

    color:#786c6e;

    font-size:15px;
    line-height:1.8;
}


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


.legal-section ul,
.legal-section ol{
    margin:
        17px 0 22px;

    padding-left:22px;

    color:#716568;
}


.legal-section li{
    margin-bottom:10px;
    padding-left:5px;

    line-height:1.65;
}


.legal-highlight{
    margin:
        26px 0;

    padding:23px;

    border:
        1px solid
        #ead3d7;

    border-radius:
        var(--legal-radius-small);

    background:
        linear-gradient(
            135deg,
            #fbf0f2,
            #fff9fa
        );
}


.legal-highlight strong{
    display:block;

    margin-bottom:8px;

    color:#754650;

    font-size:16px;
}


.legal-highlight p{
    margin:0;
}


.legal-highlight-dark{
    color:#fff;

    border-color:#332b2e;

    background:
        linear-gradient(
            135deg,
            #4d4245,
            #211d1f
        );

    box-shadow:
        0 17px 35px
        rgba(39,31,34,.16);
}


.legal-highlight-dark strong{
    color:#fff;
}


.legal-highlight-dark p{
    color:rgba(255,255,255,.72);
}


.legal-document-grid{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:15px;

    margin:25px 0;
}


.legal-document-grid article{
    padding:22px;

    border:
        1px solid
        var(--legal-border);

    border-radius:
        var(--legal-radius-small);

    background:#faf7f7;
}


.legal-document-grid article > span{
    color:#a5727a;

    font-size:9px;
    font-weight:700;
    letter-spacing:.13em;
}


.legal-document-grid h3{
    margin:9px 0 10px;
}


.legal-document-grid p{
    margin:0;
    font-size:13px;
}


.legal-status-flow{
    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:10px;

    margin:25px 0;
}


.legal-status-flow > div{
    min-height:120px;
    padding:17px;

    border:
        1px solid
        var(--legal-border);

    border-radius:
        var(--legal-radius-small);

    background:#faf7f7;
}


.legal-status-flow span{
    display:block;

    margin-bottom:25px;

    color:#a36f78;

    font-size:10px;
    font-weight:700;
}


.legal-status-flow strong{
    color:#54484a;

    font-size:13px;
    line-height:1.45;
}


.legal-note{
    margin-top:22px;
    padding:19px;

    border-left:
        3px solid
        var(--legal-pink);

    border-radius:
        0
        var(--legal-radius-small)
        var(--legal-radius-small)
        0;

    color:#694f54;
    background:#f9eff1;
}


.legal-final-card{
    padding:
        clamp(28px,4vw,50px);

    border-radius:
        var(--legal-radius-large);

    color:#fff;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(213,156,168,.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #493f42,
            #1f1b1d
        );

    box-shadow:
        0 25px 60px
        rgba(40,31,34,.18);
}


.legal-final-card > span{
    color:#ddb6bd;

    font-size:10px;
    font-weight:700;
    letter-spacing:.18em;
}


.legal-final-card h2{
    margin:16px 0 12px;

    color:#fff;

    font-size:
        clamp(
            28px,
            4vw,
            44px
        );

    font-weight:450;
    letter-spacing:-.04em;
}


.legal-final-card p{
    max-width:700px;

    margin:0;

    color:rgba(255,255,255,.7);

    font-size:15px;
    line-height:1.75;
}


.legal-final-card a{
    display:inline-flex;
    min-height:47px;

    margin-top:25px;
    padding:0 22px;

    align-items:center;
    justify-content:center;

    border-radius:999px;

    color:#30282b;
    background:#fff;

    font-size:12px;
    font-weight:600;
    text-decoration:none;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}


.legal-final-card a:hover{
    transform:translateY(-2px);

    box-shadow:
        0 13px 28px
        rgba(0,0,0,.19);
}


@media(max-width:1000px){

    .legal-hero{
        grid-template-columns:1fr;
    }

    .legal-version-card{
        min-height:auto;
    }

    .legal-layout{
        grid-template-columns:1fr;
    }

    .legal-navigation{
        position:static;

        display:grid;

        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .legal-navigation-title{
        grid-column:1 / -1;
    }

    .legal-status-flow{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media(max-width:650px){

    .legal-page{
        padding:
            135px
            15px
            70px;
    }

    .legal-hero{
        gap:25px;
        margin-bottom:25px;
    }

    .legal-navigation{
        grid-template-columns:1fr;
    }

    .legal-document-grid,
    .legal-status-flow{
        grid-template-columns:1fr;
    }

    .legal-section{
        border-radius:22px;
    }

}

/* =========================================================
   ВЕРСИОНИРУЕМЫЕ ДОКУМЕНТЫ СОГЛАСИЙ
========================================================= */

.consent-document-page{
    width:min(940px,calc(100% - 40px));
    margin:0 auto;
    padding:130px 0 90px;
}


.consent-document-header{
    padding-bottom:34px;
    border-bottom:1px solid #e7dfe1;
}


.consent-document-back{
    display:inline-flex;
    margin-bottom:38px;

    color:#76585e;

    font-size:12px;
    font-weight:650;
    text-decoration:none;
}


.consent-document-label{
    display:block;

    margin-bottom:13px;

    color:#9d737c;

    font-size:10px;
    font-weight:750;
    letter-spacing:.14em;
    text-transform:uppercase;
}


.consent-document-header h1{
    max-width:780px;
    margin:0;

    color:#352f31;

    font-size:clamp(36px,6vw,62px);
    line-height:1.05;
    font-weight:500;
    letter-spacing:-.045em;
}


.consent-document-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px 24px;

    margin-top:25px;

    color:#8d8183;
    font-size:11px;
}


.consent-document-meta strong{
    color:#55494c;
}


.consent-document-content{
    padding:22px 0;
}


.consent-document-section{
    padding:27px 0;
    border-bottom:1px solid #eee7e8;
}


.consent-document-section h2{
    margin:0 0 15px;

    color:#4c4245;

    font-size:20px;
    line-height:1.3;
    font-weight:600;
}


.consent-document-section p{
    max-width:820px;
    margin:0 0 12px;

    color:#71666a;

    font-size:14px;
    line-height:1.8;
}


.consent-document-section p:last-child{
    margin-bottom:0;
}


.consent-document-footer{
    display:flex;
    flex-direction:column;
    gap:6px;

    margin-top:24px;
    padding:22px;

    border:1px solid #e6dcdf;
    border-radius:16px;

    color:#75686b;
    background:#faf6f7;

    font-size:12px;
    line-height:1.6;
}


.consent-document-footer strong{
    margin-bottom:3px;
    color:#4c4144;
}


@media(max-width:650px){

    .consent-document-page{
        width:min(100% - 28px,940px);
        padding:95px 0 60px;
    }

}