.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    font-size: 13px;
    line-height: 1.4;
}

.footer-legal a,
.cookie-notice__text a,
.privacy-consent a {
    color: #0A5FE1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
}

.privacy-consent__checkbox {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
}

.cookie-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(720px, calc(100% - 48px));
    padding: 18px 20px;
    color: #20242a;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice__text {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice__button {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 42px;
    padding: 10px 18px;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    background: #0A5FE1;
    border: 0;
    cursor: pointer;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus {
    background: #084fb9;
}

@media (max-width: 767px) {
    .footer-legal {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .cookie-notice {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

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