/* Shared compact footer: consistent on every public page. */
.footer {
    min-height: 0 !important;
    padding: 38px 0 20px !important;
    background: #151412 !important;
    text-align: left !important;
}

.footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.2fr) minmax(140px, .55fr) minmax(260px, 1fr) !important;
    column-gap: clamp(34px, 5vw, 76px) !important;
    row-gap: 0 !important;
    align-items: start;
}

.footer .footer-brand,
.footer .footer-links,
.footer .footer-contact {
    min-width: 0;
}

.footer .footer-brand .nav-logo {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    letter-spacing: -.035em !important;
}

.footer .footer-brand .nav-logo span {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    text-align: left !important;
}

.footer .footer-brand p {
    max-width: 310px;
    margin: .6rem 0 0 !important;
    color: rgba(255,255,255,.56) !important;
    font-size: .74rem !important;
    line-height: 1.6 !important;
}

.footer .footer-links,
.footer .footer-contact {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: .42rem !important;
}

.footer .footer-links strong,
.footer .footer-contact > strong {
    margin: 0 0 .22rem !important;
    color: rgba(255,255,255,.92) !important;
    font-size: .64rem !important;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer .footer-links a,
.footer .footer-contact-row a {
    min-height: 0 !important;
    color: rgba(255,255,255,.6) !important;
    font-size: .72rem !important;
    line-height: 1.45;
    text-decoration: none;
}

.footer .footer-links a:hover,
.footer .footer-contact-row a:hover {
    color: #ff9ea6 !important;
}

.footer .footer-contact-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: .42rem !important;
    min-width: 0;
}

.footer .footer-contact-row a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.footer .footer-social-links:empty {
    display: none !important;
}

.footer .footer-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer .footer-meta .footer-bottom,
.footer .footer-meta #global-footer-text,
.footer .footer-meta > p {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: rgba(255,255,255,.4) !important;
    font-size: .64rem !important;
    line-height: 1.5;
    text-align: left;
}

.footer .footer-meta .footer-legal-links {
    display: flex;
    grid-column: auto !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 !important;
}

.footer .footer-meta .footer-legal-links a,
.footer .footer-meta .footer-legal-links button {
    min-height: 0;
    color: rgba(255,255,255,.5);
    font-size: .64rem !important;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .footer {
        padding: 28px 0 calc(18px + env(safe-area-inset-bottom)) !important;
    }

    .footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 20px !important;
        row-gap: 24px !important;
    }

    .footer .footer-brand,
    .footer .footer-meta {
        grid-column: 1 / -1 !important;
    }

    .footer .footer-brand p {
        max-width: 430px;
        margin-top: 8px !important;
    }

    .footer .footer-links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px !important;
    }

    .footer .footer-links strong {
        grid-column: 1 / -1;
    }

    .footer .footer-links a,
    .footer .footer-contact-row a {
        min-height: 34px !important;
        display: inline-flex;
        align-items: center;
    }

    .footer .footer-meta {
        margin-top: 0;
        padding-top: 14px;
    }
}

@media (max-width: 420px) {
    .footer .footer-grid {
        grid-template-columns: 1fr !important;
        row-gap: 22px !important;
    }

    .footer .footer-brand,
    .footer .footer-meta {
        grid-column: 1 !important;
    }

    .footer .footer-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer .footer-meta .footer-legal-links {
        justify-content: flex-start;
    }

    .footer .footer-links,
    .footer .footer-contact {
        gap: 6px !important;
    }

    .footer .footer-links a,
    .footer .footer-contact-row a {
        min-height: 32px !important;
    }
}
