.rs-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.rs-footer__legal-link {
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rs-footer__legal-link:hover,
.rs-footer__legal-link:focus {
    color: inherit;
    text-decoration: none;
}

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

.cookie-notice {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483647;
    box-sizing: border-box;
    padding: 15px 20px;
    color: #fff;
    background: rgba(31, 31, 31, 0.97);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.22);
}

.cookie-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

.cookie-notice__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice__link:hover,
.cookie-notice__link:focus {
    color: #fff;
    text-decoration: none;
}

.cookie-notice__button {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 2px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus {
    color: #1f1f1f;
    background: #fff;
    outline: none;
}

.cookie-notice-visible #button-up {
    bottom: 90px;
}

@media (max-width: 767px) {
    .cookie-notice {
        padding: 14px 15px;
    }

    .cookie-notice__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .cookie-notice__text {
        font-size: 13px;
    }

    .cookie-notice__button {
        width: 100%;
    }

    .cookie-notice-visible #button-up {
        bottom: 165px;
    }
}
