.site-footer {
    padding: 56px 0 32px;
    color: rgba(var(--cream), 1);
    background-color: rgba(var(--footer-green), 1);
}

.site-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 32px;
}

/* A plain <a> with display: inline-flex keeps vertical-align: baseline by default, which
   reserves descender space below it in the line box (a <div> wrapper doesn't do this).
   display: flex avoids it; this sits alone on its own line so it never needs to be inline
   with anything. */
.site-footer .footer-brand .footer-logo {
    display: flex;
    width: fit-content;
}

.site-footer .footer-brand .footer-logo img {
    display: block;
    width: 176px;
    height: auto;
    max-width: none;
}

.site-footer .footer-brand .footer-tagline {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.26px;
    color: rgba(var(--light-gold), 1);
}

.site-footer .footer-column .footer-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(var(--cream), 1);
}

/* Insights column's heading is a real link (to insights.html), not plain text like
   Platform's and Company's. Scoped to the anchor so hover/focus states don't apply to
   the other two headings, still plain <p> tags. */
.site-footer .footer-column a.footer-heading {
    display: block;
    text-decoration: none;
}

.site-footer .footer-column a.footer-heading:hover,
.site-footer .footer-column a.footer-heading:focus,
.site-footer .footer-column a.footer-heading:visited {
    color: rgba(var(--cream), 1);
}

.site-footer .footer-column a.footer-heading:hover,
.site-footer .footer-column a.footer-heading:focus {
    text-decoration: underline;
}

.site-footer .footer-column .footer-column-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-column .footer-column-links a {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(var(--cream), 0.85);
    text-decoration: none;
}

.site-footer .footer-column .footer-column-links a:hover,
.site-footer .footer-column .footer-column-links a:focus,
.site-footer .footer-column .footer-column-links a:visited {
    color: rgba(var(--cream), 1);
}

.site-footer .footer-column .footer-column-links a:hover,
.site-footer .footer-column .footer-column-links a:focus {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.site-footer .footer-bottom .footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-bottom .footer-legal li {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-footer .footer-bottom .footer-legal .copyright,
.site-footer .footer-bottom .footer-legal a {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(var(--cream), 0.85);
}

.site-footer .footer-bottom .footer-legal a {
    text-decoration: none;
}

.site-footer .footer-bottom .footer-legal a:hover,
.site-footer .footer-bottom .footer-legal a:focus,
.site-footer .footer-bottom .footer-legal a:visited {
    color: rgba(var(--cream), 1);
}

.site-footer .footer-bottom .footer-legal a:hover,
.site-footer .footer-bottom .footer-legal a:focus {
    text-decoration: underline;
}

.site-footer .footer-bottom .footer-social {
    display: inline-flex;
    color: rgba(var(--cream), 1);
}

.site-footer .footer-bottom .footer-social svg {
    display: block;
    width: 32px;
    height: 32px;
}

/* From references/Website Pages/Thought Leadership - Desktop.jpg: same size/color as the
   copyright text above it, own row with a gap. 24px gap is a judgment call, not an exact
   spec. */
.site-footer .footer-disclaimer {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(var(--cream), 0.85);
}

/* Phone only (575.98px and below): references/new-footer-phone.png. Hidden above that. */
.site-footer .footer-mobile-nav {
    display: none;
}

/* lg: references/new-footer-tablet.png. Brand block stays full-width on its own row,
   Platform/Company/Resources in one row below it, not wrapped 2-up. Gaps are estimated
   from the reference image, not an exact spec like the desktop values above. */
@media (max-width: 991.98px) {
    .site-footer .footer-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 40px;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

/* sm: references/new-footer-phone.png. No tagline, the three column lists collapse to one
   row of four links instead of stacking. Gaps are estimated from the reference image. */
@media (max-width: 575.98px) {
    .site-footer {
        padding: 48px 0 24px;
    }

    .site-footer .footer-brand .footer-tagline {
        display: none;
    }

    .site-footer .footer-columns {
        display: block;
        padding-bottom: 0;
    }

    .site-footer .footer-column {
        display: none;
    }

    .site-footer .footer-mobile-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 24px;
        margin: 32px 0 0;
        padding: 0;
        list-style: none;
    }

    .site-footer .footer-mobile-nav a {
        font-size: 14px;
        line-height: 1.5;
        color: rgba(var(--cream), 0.85);
        text-decoration: none;
    }

    .site-footer .footer-mobile-nav a:hover,
    .site-footer .footer-mobile-nav a:focus,
    .site-footer .footer-mobile-nav a:visited {
        color: rgba(var(--cream), 1);
    }

    .site-footer .footer-mobile-nav a:hover,
    .site-footer .footer-mobile-nav a:focus {
        text-decoration: underline;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 32px;
    }

    /* Forces a line break after the copyright so it's alone on its own row and the two links
       share the next one, instead of all three wrapping as a group (references/new-footer-phone.png). */
    .site-footer .footer-bottom .footer-legal .copyright {
        flex-basis: 100%;
    }
}
