footer {
    background-color: var(--charcoal-grey);
}

footer .row {
    border-bottom: 1px solid var(--slate-grey);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin: 0 auto;
    max-width: 1280px;
}

footer .row-1 {
    grid-column-gap: 40px;
    padding: 128px 0 80px 0;
}

footer .row-2 {
    border-bottom: none;
    grid-column-gap: 0;
    padding: 60px 0;
}

footer .row,
footer .row a,
footer .row h2,
footer .row h4 {
    color: var(--white);
}

footer .row a:hover {
    text-decoration: underline;
}

footer .row-1 > :nth-child(1) {
    grid-column: 1 / 4;
}

footer .row-1 > :nth-child(2) {
    grid-column: 4 / 7;
}

footer .row-1 > :nth-child(3) {
    grid-column: 7 / 10;
}

footer .row-1 > :nth-child(4) {
    grid-column: 10 / 13;
}

footer .row-2 > :nth-child(1) {
    grid-column: 1 / 10;
}

footer .row-2 > :nth-child(2) {
    grid-column: 10 / 13;
}

footer .footer-current-url {
    display: none;
}

footer .footer-section-with-header {
    font-size: 18px;
}

footer .footer-section-with-header button {
    cursor: default;
}

footer .footer-section-with-header button svg {
    display: none;
}

footer .footer-section-with-header h2 {
    font-size: 27px;
    padding-bottom: 50px;
}

footer .footer-section-with-header li {
    margin-bottom: 10px;
}

footer .footer-section-with-header li:last-child {
    margin-bottom: 0;
}

footer .footer-logo {
    text-align: center;
}

footer .footer-logo img {
    max-width: 225px;
}

footer .postal-address {
    color: var(--brown-grey);
}

footer .contact-button {
    margin-top: 20px;
}

footer .legal {
    color: var(--brown-grey);
}

footer .legal a {
    padding-right: 10px;
}

footer .footer-social-links li {
    display: inline-block;
    margin: 0 10px;
}

footer .footer-social-links li img {
    max-width: 32px;
}

footer .a11y-and-privacy-links ul,
footer .a11y-and-privacy-links li {
    display: inline-block;
}

@media (max-width: 1280px) {
    footer .row {
        grid-row-gap: 40px;
        max-width: 1000px;
    }

    footer .row-1 {
        padding-left: 50px;
        padding-right: 50px;
    }

    footer .row-1 > :nth-child(1) {
        grid-column: 1 / 13;
    }

    footer .row-1 > :nth-child(2) {
        grid-column: 1 / 5;
    }

    footer .row-1 > :nth-child(3) {
        grid-column: 5 / 9;
    }

    footer .row-1 > :nth-child(4) {
        grid-column: 9 / 13;
    }

    footer .row-2 > :nth-child(1) {
        grid-column: 1 / 9;
    }

    footer .row-2 > :nth-child(2) {
        grid-column: 9 / 13;
    }
}

@media (max-width: 1000px) {
    footer .footer-social-links li {
        margin: 0 6px;
    }

    footer .footer-social-links li img {
        max-width: 24px;
    }
}

@media (max-width: 767px) {
    footer .row {
        border-bottom: none;
        display: block;
        padding-left: 0;
        padding-right: 0;
    }

    footer .row-1 {
        padding-bottom: 40px;
    }

    footer .row-2 {
        padding: 0;
    }

    footer .footer-logo {
        padding-bottom: 20px;
    }

    footer .footer-section-with-header {
        border-top: 1px solid var(--slate-grey);
        padding: 0;
    }

    footer .footer-section-with-header .reveal-with-button {
        display: none;
    }

    footer .footer-section-with-header .reveal-with-button.visible {
        display: block;
        padding-left: 30px;
    }

    /* Hide the vertical bar on the plus sign to make a minus sign. Kinda hacky, but works. */
    footer .footer-section-with-header [data-button-current-state~=show] svg :nth-child(1) {
        display: none;
    }

    footer .footer-section-with-header button {
        cursor: pointer;
        display: flex;
        width: 100%;
    }

    footer .footer-section-with-header button h2 {
        display: inline-block;
        margin: 0;
        padding: 36px 30px;
        text-align: left;
        width: calc(100% - 50px);
    }

    footer .footer-section-with-header button svg {
        display: block;
        margin-top: 36px;
        text-align: right;
    }

    footer .row-2 {
        text-align: center;
    }

    footer .legal .a11y-and-privacy-links {
        display: block;
    }

    footer .legal .a11y-and-privacy-links .sep {
        display: none;
    }

    footer .footer-social-links {
        margin-top: 10px;
    }
}
