footer {
    grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
    align-items: start;
}

.footer-brand {
    min-width: 0;
}

.footer-links {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem 1.5rem !important;
}

.footer-links a {
    white-space: nowrap;
}

footer small {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    footer {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .footer-links {
        column-gap: 1rem !important;
    }
}
