.global-footer {
    --footer-surface: #ffffff;
    --footer-border: var(--border, var(--color-border, #d8e0e7));
    --footer-text: var(--text-secondary, var(--color-text-secondary, #5e6d79));
    --footer-link: var(--brand-primary, var(--color-primary, #12355b));
    --footer-link-hover: var(--brand-secondary, var(--color-primary-hover, #3e78a8));
    flex: 0 0 auto;
    border-top: 1px solid var(--footer-border);
    background: var(--footer-surface);
    color: var(--footer-text);
    font-family: var(--font-family-sans, Inter, Arial, sans-serif);
}

.global-footer--auth {
    --footer-surface: rgba(255, 255, 255, 0.72);
    border-top-color: rgba(18, 53, 91, 0.10);
}

.global-footer--app,
.global-footer--dashboard {
    margin-top: 18px;
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.global-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    width: min(100% - 40px, 1180px);
    min-height: 64px;
    margin-inline: auto;
    padding: 12px 0;
}

.global-footer--app .global-footer__inner,
.global-footer--dashboard .global-footer__inner {
    width: min(100% - 28px, var(--workspace-max-width, 1180px));
}

.global-footer__institutional {
    min-width: 0;
}

.global-footer__institutional p {
    margin: 0;
    color: var(--footer-text);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
}

.global-footer__institutional a,
.global-footer__links a {
    color: var(--footer-link);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.global-footer__institutional a {
    display: inline-flex;
    margin-top: 3px;
}

.global-footer__links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.global-footer__institutional a:hover,
.global-footer__links a:hover {
    color: var(--footer-link-hover);
}

.global-footer__institutional a:focus-visible,
.global-footer__links a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(111, 175, 196, 0.46);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .global-footer__inner,
    .global-footer--app .global-footer__inner,
    .global-footer--dashboard .global-footer__inner {
        width: min(100% - 24px, 1180px);
        align-items: flex-start;
        flex-direction: column;
    }

    .global-footer__links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 14px;
    }
}
