.site-footer {
    background-color: var(--bg-nav-footer);
    color: var(--text-inverse);
    flex-shrink: 0;
    padding: var(--p-2) var(--p-3);
    width: 100%;
    box-sizing: border-box;
}

.site-footer__content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--p-2) var(--p-3);
    justify-content: space-between;
    margin: auto;
    max-width: 1200px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--p-1) var(--p-3);
}

.site-footer a {
    color: var(--text-inverse);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--bg-input);
}

:is(.public-shell-page, .admin-shell-page) .site-footer {
    background: var(--color-text-primary);
    color: var(--color-surface);
    padding: var(--space-xl) var(--space-lg);
}

:is(.public-shell-page, .admin-shell-page) .site-footer__content {
    gap: var(--space-md) var(--space-xl);
}

:is(.public-shell-page, .admin-shell-page) .site-footer nav {
    gap: var(--space-sm) var(--space-lg);
}

:is(.public-shell-page, .admin-shell-page) .site-footer a,
:is(.public-shell-page, .admin-shell-page) .site-footer a:link,
:is(.public-shell-page, .admin-shell-page) .site-footer a:visited {
    color: var(--color-surface);
}

:is(.public-shell-page, .admin-shell-page) .site-footer a:hover,
:is(.public-shell-page, .admin-shell-page) .site-footer a:focus-visible {
    color: var(--color-primary-300);
}

@media (max-width: 576px) {
    .site-footer {
        padding-inline: var(--p-2);
    }

    .site-footer__content,
    .site-footer nav {
        align-items: flex-start;
        flex-direction: column;
    }
}
