.legal-page {
    padding: 42px 0 72px;
    background: #f7f7f8;
}

.legal-page__card {
    max-width: 920px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .07);
    color: #292929;
}

.legal-page h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
}

.legal-page h2 {
    margin: 32px 0 12px;
    font-size: 23px;
    line-height: 1.3;
}

.legal-page h3 {
    margin: 22px 0 8px;
    font-size: 18px;
}

.legal-page p,
.legal-page li {
    font-size: 16px;
    line-height: 1.65;
}

.legal-page ul,
.legal-page ol {
    padding-left: 24px;
}

.legal-page__meta,
.legal-page__note {
    color: #636363;
}

.legal-page__note {
    padding: 14px 16px;
    border-left: 4px solid #c44141;
    background: #faf2f2;
}

.legal-page a,
.privacy-consent a,
.privacy-footer a {
    color: #a83232;
    text-decoration: underline;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 4px;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
}

.privacy-consent {
    position: relative;
    cursor: pointer;
}

.privacy-consent input[type="checkbox"] {
    position: absolute !important;
    z-index: 2;
    top: 0;
    left: 0;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
}

.privacy-consent__box {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #8b8b8b;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.privacy-consent input[type="checkbox"]:checked + .privacy-consent__box {
    border-color: #c44141;
    background: #c44141;
}

.privacy-consent input[type="checkbox"]:checked + .privacy-consent__box::after {
    position: absolute;
    top: 1px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.privacy-consent input[type="checkbox"]:focus-visible + .privacy-consent__box {
    outline: 3px solid rgba(196, 65, 65, .3);
    outline-offset: 2px;
}

.privacy-consent__text {
    min-width: 0;
}

.privacy-before-form {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(196, 65, 65, .28);
    border-left: 4px solid #c44141;
    border-radius: 8px;
    background: #fff7f7;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.privacy-before-form strong {
    display: block;
    margin-bottom: 4px;
}

.privacy-before-form p {
    margin: 0;
}

.privacy-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.footer__requisites {
    flex: 1 1 100%;
    color: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-consent {
    position: fixed;
    z-index: 100000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: none;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 50px rgba(0, 0, 0, .2);
    color: #252525;
}

.cookie-consent.is-visible {
    display: block;
}

.cookie-consent__title {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 700;
}

.cookie-consent__text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-consent__button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #c44141;
    border-radius: 7px;
    background: #c44141;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.cookie-consent__button_secondary {
    background: #fff;
    color: #9f3030;
}

.cookie-settings {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 24px 0 48px;
    }

    .legal-page__card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .legal-page h1 {
        font-size: 27px;
    }

    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-consent__button {
        width: 100%;
    }
}
