footer {
    padding: 4vh 5% 0 5%;
    row-gap: 5vh;
    width: 90%;
    border-top: 3px solid var(--primary-highlight);
    font-size: var(--font-primary);
    background-color: var(--dark);
    justify-content: space-between;
    flex-direction: column;
    display: flex;
    color: var(--light);
    margin-top: 5em;
}

.footer-rows {
    column-gap: 10vw;
    grid-template-columns: auto;
    justify-content: right;
    display: flex;
}

.footer-rows:nth-child(2){
    justify-content: left;
}

.footer-cols {
    flex-direction: column;
    text-align: center;
    display: flex;
}

footer img {
    height: 8vh;
}

footer h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-highlight);
    font-size: var(--font-heading);
    text-align: center !important;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer .footer-icons {
    display: flex;
    gap: 1em;
}

footer .footer-icons {
    font-size: 2.5em;
}

#footer-legal {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.legal-text {
    width: 100%;
    margin-bottom: 1em;
}

.legal-text p {
    text-align: right;
    font-weight: 300;
    font-style: italic;
    margin: 0;
}


@media only screen and (max-width: 750px) {
    .footer-rows {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .footer-rows:last-child, .footer-rows:last-child a {
        font-size: .8rem;
    }

    footer img {
        max-height: 8vh;
        max-width: 80%;
        height: auto;
    }
    
    footer h3 {
        font-size: 1.4rem;
        margin: 2vh 0 0 0;
    }

    footer a {
        font-size: 1.1rem;
    }

    .footer-social-media a {
        font-size: 2rem;
    }
}