.global-footer {
  background: var(--brand-navy);
  color: var(--brand-cream);
  --focus-ring: var(--brand-cream);
}

.global-footer-inner {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.global-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 42px 38px;
}

.global-footer-brand {
  display: inline-block;
  width: 120px;
  margin-bottom: 12px;
}

.global-footer-brand img { width: 100%; }
.global-footer-description { font-size: 14px; color: #d7e1e7; }
.global-footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 14px; }
.global-footer-social-label { color: #d7e1e7; font-size: 12px; }
.global-footer-social-links { display: flex; align-items: center; gap: 4px; }
.global-footer-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 6px; transition: color 180ms, background-color 180ms; }
.global-footer-social svg { width: 22px; height: 22px; flex: none; }
.global-footer-social a:hover { color: var(--brand-blue-soft); background: #ffffff0d; }
.global-footer-social a:focus-visible { outline: 2px solid var(--brand-blue-soft); outline-offset: 2px; }
.global-footer-bottom { display: flex; justify-content: space-between; gap: 16px 32px; padding-block: 17px 22px; border-top: 1px solid #ffffff38; color: #d7e1e7; font-size: 12px; }
.global-footer-credit a { color: var(--brand-cream); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.global-footer-bottom a:hover { color: var(--brand-blue-soft); }

@media (max-width: 700px) {
  .global-footer-inner { width: calc(100% - 40px); }
  .global-footer-main { align-items: start; flex-direction: column; gap: 20px; padding-block: 36px 28px; }
  .global-footer-brand { width: 108px; }
  .global-footer-social { align-items: flex-start; }
  .global-footer-bottom { flex-wrap: wrap; }
}

.global-footer-logos { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; }
.global-footer-logos .global-footer-brand { margin-bottom: 0; flex: none; }
.global-footer-institutions { display: flex; align-items: center; gap: 24px; }
.global-footer-institutions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.global-footer-institutions img { display: block; width: 112px; height: 62px; object-fit: contain; filter: brightness(0) invert(1); }
.global-footer-institutions a:last-child img { width: 130px; height: 52px; filter: grayscale(1) invert(1) brightness(3); mix-blend-mode: screen; }
@media (max-width: 700px) {
  .global-footer-logos { gap: 18px; }
  .global-footer-institutions { gap: 16px; }
  .global-footer-institutions img { width: 82px; height: 48px; }
  .global-footer-institutions a:last-child img { width: 100px; height: 42px; }
}

@media (max-width: 380px) {
  .global-footer-logos { gap: 14px; }
  .global-footer-logos .global-footer-brand { width: 88px; }
  .global-footer-institutions { gap: 12px; }
  .global-footer-institutions img { width: 70px; }
  .global-footer-institutions a:last-child img { width: 86px; }
}

.global-footer-email { display: flex; flex-direction: column; gap: 12px; min-width: 160px; }
.global-footer-email-placeholder { display: block; width: 100%; min-height: 32px; border-bottom: 1px solid #ffffff60; color: var(--brand-cream); }
.global-footer-email a { overflow-wrap: anywhere; }
@media (max-width: 700px) { .global-footer-email { width: min(100%, 280px); } }

/* Controle flutuante compartilhado por todas as páginas. */
html body .global-footer .button.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; min-height: 52px; padding: 0;
  border-radius: 50%; box-shadow: 0 4px 16px #102c4229;
}
.back-to-top svg { width: 22px; height: 22px; flex: none; }
.back-to-top span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  html body .global-footer .button.back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 48px; height: 48px; min-height: 48px; }
}
