.footer {
    padding: 1rem;
    vertical-align: bottom;
    background-color: var(--accent-strong);
}

.footer__inner {
    width: min(100%, var(--layout-shell-max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(1rem, 0.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem 1.25rem;
}

.footer__section {
    min-width: 0;
}

.footer__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    white-space: nowrap;
}

.footer__link:hover,
.footer__link:focus-visible {
    text-decoration: underline;
}

.footer__section--right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem 0.45rem;
    justify-self: end;
    width: 100%;
}

.footer__section--left {
    justify-self: start;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.45;
}

.footer__section--left p {
    margin: 0;
}

.footer__section--left p + p {
    margin-top: 0.25rem;
}

.footer__separator {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer__section--right,
.footer__section--right a {
    color: var(--text-secondary);
}

.footer__special-page {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.footer__special-page p {
    margin: 0;
}

.footer__special-page a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.78;
}

.footer__special-page a:hover,
.footer__special-page a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .footer {
        padding: 1rem 1rem 1.2rem;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.7rem;
    }

    .footer__section--left,
    .footer__section--center,
    .footer__section--right {
        justify-self: center;
        justify-content: center;
        text-align: center;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .footer__section--right {
        gap: 0.1rem 0.35rem;
    }
}
