/* Rodapé simplificado: marca + "Site" + "Unidades" + "Guias" (páginas comerciais e respostas mais buscadas) */
html body .site-footer.site-footer.site-footer .footer-main {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .55fr) minmax(0, .55fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
}

html body .site-footer.site-footer.site-footer .footer-guides {
  grid-column: auto;
}

html body .site-footer.site-footer.site-footer .footer-units-simple {
  grid-column: auto;
}

@media (max-width: 860px) {
  html body .site-footer.site-footer.site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-block: 40px 32px;
  }

  html body .site-footer.site-footer.site-footer .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 18px;
  }

  html body .site-footer.site-footer.site-footer .footer-brand img {
    grid-row: span 2;
    width: 72px;
    height: 76px;
  }

  html body .site-footer.site-footer.site-footer .footer-brand p {
    margin: 0;
  }

  html body .site-footer.site-footer.site-footer .footer-social {
    margin-top: 0;
  }

  html body .site-footer.site-footer.site-footer .footer-main h2 {
    margin-bottom: 14px;
  }

  html body .site-footer.site-footer.site-footer .footer-links {
    gap: 10px;
  }

  html body .site-footer.site-footer.site-footer .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
  }

  html body .site-footer.site-footer.site-footer .footer-bottom > div {
    flex-direction: row;
    gap: 16px;
  }
}

/* "O que você procura hoje?": botões lado a lado no tablet, empilhados só no celular */
@media (min-width: 641px) and (max-width: 1100px) {
  html body .site-footer.site-footer.site-footer .footer-cta .button-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  html body .site-footer.site-footer.site-footer .footer-cta .button {
    flex: 1 1 220px;
    width: auto;
    max-width: 320px;
  }
}

/* Celular e tablet: links do rodapé, trilha de navegação e índice com área de toque confortável e texto legível */
@media (max-width: 860px) {
  html body .site-footer.site-footer.site-footer .footer-links a,
  html body .site-footer.site-footer.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: .9rem;
    overflow-wrap: anywhere;
  }

  html body .site-footer.site-footer.site-footer .footer-links {
    gap: 2px;
  }

  html body .site-footer.site-footer.site-footer .footer-social {
    display: grid;
    gap: 0;
  }

  html body .site-footer.site-footer.site-footer .footer-bottom,
  html body .site-footer.site-footer.site-footer .footer-bottom a,
  html body .site-footer.site-footer.site-footer .footer-bottom p {
    font-size: .76rem;
  }

  html body .site-footer.site-footer.site-footer .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  html body .breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  html body .legal-index a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  html body .info-hero-actions .text-action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    overflow-wrap: anywhere;
  }
}