footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 2.5rem 0 1.25rem;
    margin-top: auto;
    background: var(--bg-primary);
}

.footer-navigation {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    overflow: visible;
    width: 50vw;
    max-width: 44rem;
}

footer nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

footer nav h2 {
    margin-bottom: 0.65rem;
}

footer nav a,
footer nav .a {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0;
    height: 3rem;
    outline-offset: 0.25rem;
    transition: color 0.2s;
    --hover-color: var(--primary);
}

footer nav a .fab {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    width: 1.8rem;
    height: 1.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

footer nav a:hover {
    color: var(--hover-color);
}

.footer-bottom-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-bottom-text p {
    margin: 0.2rem 0;
    overflow: visible;
    text-align: center;
}

.footer-bottom-text p:first-child {
    font-weight: bold;
}

@media (max-width: 50em) {
    .footer-navigation {
        flex-direction: column;
        justify-content: flex-start;
        width: auto;
    }

    footer nav:first-child {
        margin-bottom: 3rem;
    }
}