.footer-legal {
    margin-top: 32px;
    padding: 22px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.footer-legal__title {
    margin: 0 0 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-legal__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 36px;
    max-width: 940px;
    font-size: 13px;
    line-height: 1.45;
}

.footer-legal__links a {
    color: #aaa;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-legal__links a:hover { color: #fff; }

.legal-consents a,
.cookie-notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-consents {
    display: grid;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

.legal-consents__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.legal-consents__item span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.legal-consents__item input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
}

.modal_online-application .legal-consents {
    width: 100%;
    max-width: none;
}

.page .card {
    max-height: none;
    padding-bottom: 48px;
}

.card__inputs .legal-consents {
    margin: 18px 0 0;
}

.page .card__inputs-btn {
    margin-top: 26px;
}

.card__text.is-success-message,
.online-application__text.is-success-message {
    color: #2f8a46;
    font-weight: 700;
}

@media (min-width: 1000px) {
    .header_scrolled .header__cont {
        box-sizing: border-box;
        width: calc(100% - 40px);
        max-width: 1240px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .header_scrolled .h-menu {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 30px;
    }

    .header_scrolled .h-menu > p { flex: 0 0 auto; }
}

@media (min-width: 1200px) {
    .header_scrolled .h-menu { gap: 14px; }
}

.cookie-notice {
    position: fixed;
    z-index: 10000;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 560px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(24, 24, 24, .96);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    font-size: 13px;
    line-height: 1.45;
}

.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice button {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.legal-page { background: #f5f4f2; }

.legal-page__hero {
    padding: 32px 20px 26px;
    background: #fff;
    color: #111;
}

.legal-page__hero-inner,
.legal-document__inner {
    max-width: 980px;
    margin: 0 auto;
}

.legal-page__hero h1 {
    max-width: 820px;
    margin: 0;
    color: #111;
    font: 700 38px/1.15 Arial, sans-serif;
}

.legal-document {
    padding: 42px 20px 64px;
    color: #222;
}

.legal-document__inner {
    box-sizing: border-box;
    padding: 48px 58px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    font: 15px/1.7 Arial, sans-serif;
}

.legal-document__inner h1,
.legal-document__inner h2 { margin: 30px 0 14px; line-height: 1.3; }
.legal-document__inner p { margin: 0 0 16px; }
.legal-document__inner p:first-child { font-weight: 700; font-size: 18px; }
.legal-document__table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.legal-document__table tr:nth-child(even) { background: #faf9f7; }
.legal-document__table td { padding: 13px 14px; border: 1px solid #ddd9d5; vertical-align: top; }
.legal-document__table td:first-child { font-weight: 700; }

@media (max-width: 750px) {
    .footer-legal__links { grid-template-columns: 1fr; gap: 8px; }
    .cookie-notice { left: 10px; right: 10px; bottom: 10px; align-items: flex-start; }
    .legal-page__hero { padding: 20px 15px; }
    .legal-page__hero h1 { font-size: 27px; }
    .legal-document { padding: 20px 10px 40px; }
    .legal-document__inner { padding: 26px 18px; box-shadow: none; }
    .legal-document__inner { font-size: 14px; }
    .legal-document__table { display: block; overflow-x: auto; }
}
