/* Footer — Footer.astro <style> */
/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--paper-2);
  padding: 56px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-2);
}
/* Banda de marca — identidade à esquerda, redes sociais à direita */
.footer__brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(36px, 4vw, 52px);
}
@media (max-width: 720px) {
  .footer__brand { grid-template-columns: 1fr; gap: 28px; }
}
.footer__tagline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 52ch;
}
.footer__entity {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}

/* Educação + Ajuda dividem a última célula da grade */
.footer__col-stack {
  display: grid;
  gap: 28px;
  align-content: start;
}

/* Seis colunas de links */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px 24px;
  margin-bottom: 40px;
}
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.footer__logo svg {
  width: auto;
  height: 44px;
  display: block;
}
.footer__col h5 a { color: inherit; }
.footer__col h5 a:hover { color: var(--orange-dark); }
.footer__col h5 {
  font-family: var(--font-sans);
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--orange);
  font-weight: 400;
  margin: 0 0 16px;
}
.footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.footer__col a { color: var(--ink-2); }
.footer__col a:hover { color: var(--orange); }
.footer__col a.infra-link {
  color: var(--blue);
  font-weight: 600;
}
.footer__col a.infra-link:hover { color: var(--blue-dark); }

/* Links legais na barra inferior — herdam mono/11px/--ink-3 do .footer__bottom */
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__legal-links a { color: inherit; }
.footer__legal-links a:hover { color: var(--orange); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: normal;
  color: var(--ink-3);
}

/* Selos e certificações */
.footer__selos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 52px); padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); margin-top: clamp(32px, 4vw, 48px); }
.footer__selos a { display: inline-flex; align-items: center; transition: opacity 180ms ease; }
.footer__selos a:hover { opacity: 0.75; }
.footer__selos img { height: 72px; width: auto; display: block; }
.footer__selos img.selo-iso-img { height: 96px; }
@media (max-width: 640px) { .footer__selos { gap: 24px; } .footer__selos img { height: 56px; } .footer__selos img.selo-iso-img { height: 72px; } }

/* Redes sociais */
.footer__social-block { margin-top: 0; }

/* Baixe nosso app */
.footer__app-badges { display: grid; gap: 10px; justify-items: start; }
.footer__app-badges a { display: block; width: 100%; max-width: 172px; transition: opacity 180ms ease; }
.footer__app-badges a:hover { opacity: 0.78; }
.footer__app-badges img { width: 100%; height: auto; display: block; }
.footer__social-block h5 { font-family: var(--font-sans); font-size: 11px; color: var(--gray-03); letter-spacing: normal; text-transform: none; margin: 0 0 16px; font-weight: 500; }
.footer__social-icons { display: flex; flex-wrap: wrap; gap: 12px; }
/* Dois níveis de propósito: a página de Contato injeta um guard
   `.footer a { color: inherit }` DEPOIS desta folha para conter o reset do
   bundle do Jira. Com um só nível a especificidade empata e os ícones herdam
   --ink-2 (ficam escuros). `.footer .footer__social-icons a` vence sempre. */
.footer .footer__social-icons a { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; border: 1.5px solid var(--orange); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; transition: background 120ms ease, color 120ms ease, transform 120ms ease; }
.footer .footer__social-icons a:hover { background: #fff; color: var(--orange); transform: translateY(-2px); }

/* Aviso da página realojado dentro do rodapé — vem do .fx-risk da página,
   movido pelo chrome.js. Aqui ele perde a moldura de seção e passa a ser o
   primeiro parágrafo do bloco legal. */
.footer__legal-page:empty { display: none; }
.footer__legal-page .fx-risk { background: none; border: 0; padding: 0; margin: 0; }
.footer__legal-page .fx-risk .wrap { max-width: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__legal-page .fx-risk h3 { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; color: var(--gray-03); margin: 0; letter-spacing: normal; }
.footer__legal-page .fx-risk p { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 108ch; }
.footer__legal-page .fx-risk .fx-cvm { font-size: 12.5px; line-height: 1.6; padding: 14px 16px; background: #fff; border-left: 3px solid var(--orange); color: var(--gray-03); margin: 0; }

/* Bloco de status regulatório */
.footer__legal { border-top: 1px solid var(--rule); margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); display: grid; gap: 10px; }
.footer__legal p { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 108ch; }
.footer__legal strong { font-weight: 700; color: var(--gray-03); }
.footer__legal a { color: var(--ink-2); text-decoration: underline; }
.footer__legal a:hover { color: var(--orange); }
