/* Footer links (Privacy Policy / Cookies / Disclaimer) */
.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
}

.footer-links__btn {
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    color: var(--color, #00975d);
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.footer-links__btn:hover,
.footer-links__btn:focus {
    opacity: 0.8;
}

/* Modal */
.footer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10500;
    padding: 16px;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.footer-modal.is-open {
    display: flex;
}

.footer-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsl(0deg 0% 0% / 55%);
}

.footer-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px hsl(0deg 0% 0% / 25%);
    padding: 44px 20px 24px;
    box-sizing: border-box;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    animation: footer-modal-in 0.25s ease-out;
}

@keyframes footer-modal-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgb(181 181 181);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.footer-modal__close:hover,
.footer-modal__close:focus {
    background: rgb(150 150 150);
}

.footer-modal__title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #2e2e2e;
}

.footer-modal__body {
    font-size: 15px;
    line-height: 1.5;
    color: #2e2e2e;
}

.footer-modal__body > *:first-child {
    margin-top: 0;
}

.footer-modal__body > *:last-child {
    margin-bottom: 0;
}

body.footer-modal-open {
    overflow: hidden;
}

@media (min-width: 576px) {
    .footer-modal__dialog {
        max-width: 480px;
        padding: 48px 32px 32px;
    }
}

@media (min-width: 992px) {
    .footer-modal {
        align-items: center;
    }

    .footer-modal__dialog {
        max-width: 620px;
        margin-top: 0;
    }
}
