/* Footer */

.footer {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 49px;
    margin-top: 72px;
}

.container--footer-top {
    padding: 0 28px;
}

.ad--bottom {
    margin-top: 50px;
    margin-bottom: 29px;
}

.footer__language {
    max-width: 1010px;
    margin: 0 auto;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
}

.footer__language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__language-list li {
    margin-bottom: 10px;
    white-space: nowrap;
}

.footer__language-list li:not(:last-child)::after {
    margin: 0 7px;
    color: rgba(245, 242, 236, .5);
    content: "|";
}

.footer__language-list a:hover,
.footer__language-list a:focus-visible,
.footer__info-list a:hover,
.footer__info-list a:focus-visible {
    text-decoration: underline;
}

.footer__bottom {
    width: 100%;
    border-top: 1px solid rgba(245, 242, 236, .28);
    background: var(--paper);
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 90px;
    min-height: 91px;
    font-size: 15px;
    font-weight: 400;
}

.footer__copyright {
    flex: 1 1 auto;
    margin-inline-start: 36px;
    color: #ffffff;
}

.footer__info {
    flex: 0 0 auto;
    margin-inline-end: 32px;
}

.footer__info-list {
    display: flex;
    align-items: center;
    gap: 45px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__info-list a {
    color: #ffffff;
    white-space: nowrap;
}

/* Responsive layout */

@media (max-width: 1200px) {
    .footer__bottom-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        min-height: auto;
    }

    .footer__copyright {
        display: flex;
        order: 2;
        align-items: center;
        justify-content: center;
        height: 50px;
        padding: 0 16px;
        margin-top: 10px;
        margin-inline-start: 0;
        color: #b0b0b0;
        font-size: 13px;
        text-align: center;
    }

    .footer__info {
        order: 1;
        margin-inline-end: 0;
    }

    .footer__info-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .footer__info-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .footer__info-list > li:last-child {
        border-bottom: 0;
    }

    .footer__info-list a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 49px;
    }
}

@media (max-width: 620px) {
    .container--footer-top {
        padding-right: 16px;
        padding-left: 16px;
    }

    .footer {
        gap: 36px;
        margin-top: 56px;
    }
}

/* Keep footer ad spacing fixed, including on short pages. */

.footer.footer--with-bottom-ad {
    margin-top: 0;
}
