/* Site footer: legal + navigation links.
   Rendered by includes/footer.php for every page using the standard layout. */
.c-footer {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.c-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}

.c-footer__links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.c-footer__links a:hover,
.c-footer__links a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.c-footer__copy {
    font-size: 0.8rem;
    color: var(--color-text-muted, var(--color-text-secondary));
    margin: 0;
}

/* Standalone screens (auth flows, all-notifications) that set $hideLayout and
   close their own card before reaching here. */
.c-footer--standalone {
    margin-top: 0;
    padding: 1.25rem 1rem 2rem;
}

/* Phone: the bottom nav is a fixed bar, so keep the footer's last row clear
   of it rather than letting the copyright line sit underneath. */
@media (max-width: 768px) {
    .c-footer {
        margin-top: 1.5rem;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .c-footer__links {
        gap: 0.4rem 0.9rem;
    }

    .c-footer__links a {
        font-size: 0.8rem;
    }
}
