#footer-container {
    margin-top: auto;
    width: 100%;
}

.gov-footer {
    margin-top: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 18px 0;
    background: #ffffff;
    border-top: 1px solid rgba(11, 28, 59, 0.08);
}

.footer-content {
    width: min(1120px, calc(100vw - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto auto;
    gap: 16px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.footer-logo {
    width: auto;
    height: 34px;
    object-fit: contain;
}

.footer-logo--secondary {
    height: 30px;
}

.footer-brand-copy {
    display: grid;
    gap: 4px;
}

.footer-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(11, 28, 59, 0.58);
}

.footer-brand-copy h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0b1c3b;
}

.footer-brand-copy p,
.footer-note p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(11, 28, 59, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--sea);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-links a:hover {
    color: var(--hover-sea);
    text-decoration: underline;
}

.footer-note {
    display: grid;
    gap: 2px;
    justify-items: end;
    text-align: right;
}

.footer-copyright {
    font-size: 0.76rem;
    color: rgba(11, 28, 59, 0.52);
}

@media (max-width: 980px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        text-align: left;
    }

    .footer-note {
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .gov-footer {
        padding: 24px 0;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand-copy {
        justify-items: center;
    }

    .footer-logo {
        height: 42px;
    }

    .footer-logo--secondary {
        height: 36px;
    }
}
