/**
 * Footer institucional — fundo branco sólido, largura total
 */

html:has(.portal-root),
html:has(.portal-root) body {
  background-color: #ffffff !important;
}

.portal-root,
.portal-shell {
  background-color: #ffffff;
}

.portal-shell footer.mob-center,
.portal-root footer.mob-center,
.portal-shell .footer-area,
.portal-root .footer-area,
.portal-shell .footer-area.footer-bg,
.portal-root .footer-area.footer-bg,
.portal-shell .footer-area .footer-top,
.portal-root .footer-area .footer-top,
.portal-shell .footer-area .footer-top.footer-padding,
.portal-root .footer-area .footer-top.footer-padding,
.portal-shell .footer-area .footer-bottom,
.portal-root .footer-area .footer-bottom,
.portal-shell .footer-area .container,
.portal-root .footer-area .container,
.portal-shell .footer-area .single-footer-caption,
.portal-root .footer-area .single-footer-caption,
.portal-shell .footer-area .row,
.portal-root .footer-area .row {
  background-color: #ffffff !important;
  background-image: none !important;
}

.portal-shell footer.mob-center,
.portal-root footer.mob-center {
  position: relative;
  z-index: 5;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.portal-shell .footer-area.footer-bg,
.portal-root .footer-area.footer-bg {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.portal-shell .footer-area .footer-top.footer-padding,
.portal-root .footer-area .footer-top.footer-padding {
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid #e5e7eb !important;
}

.portal-shell .footer-area .footer-bottom,
.portal-root .footer-area .footer-bottom {
  width: 100%;
  margin: 0;
  padding: 1.35rem 0 1.75rem;
  border-top: none;
}

.portal-shell .footer-area .footer-copy-right p,
.portal-root .footer-area .footer-copy-right p {
  margin: 0;
  color: #5b6472;
}

/* Bloco de contato — Localização / Telefone / Email */
.portal-shell .portal-footer-contato,
.portal-root .portal-footer-contato {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.portal-shell .portal-footer-contato__bloco,
.portal-root .portal-footer-contato__bloco {
  margin: 0;
}

.portal-shell .portal-footer-contato__titulo,
.portal-root .portal-footer-contato__titulo {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2937;
}

.portal-shell .portal-footer-contato__texto,
.portal-root .portal-footer-contato__texto {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: #4b5563;
}

.portal-shell .portal-footer-contato__texto--endereco,
.portal-root .portal-footer-contato__texto--endereco {
  white-space: normal;
}

/* Grade do rodapé — colunas com espaçamento estável */
.portal-shell .footer-area .footer-top > .container > .row,
.portal-root .footer-area .footer-top > .container > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 1.5rem;
  margin-left: 0;
  margin-right: 0;
}

.portal-shell .footer-area .footer-top .row > [class*="col-"],
.portal-root .footer-area .footer-top .row > [class*="col-"] {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}

@media (min-width: 992px) {
  .portal-shell .footer-area .footer-top .row > .col-xl-4:first-child,
  .portal-root .footer-area .footer-top .row > .col-xl-4:first-child,
  .portal-shell .footer-area .footer-top .row > .col-lg-4:first-child,
  .portal-root .footer-area .footer-top .row > .col-lg-4:first-child {
    flex: 1 1 30%;
    max-width: 34%;
  }

  .portal-shell .footer-area .footer-top .row > .col-xl-2,
  .portal-root .footer-area .footer-top .row > .col-xl-2,
  .portal-shell .footer-area .footer-top .row > .col-lg-2,
  .portal-root .footer-area .footer-top .row > .col-lg-2 {
    flex: 0 0 16%;
    max-width: 16%;
  }

  .portal-shell .footer-area .footer-top .row > .col-xl-4:last-child,
  .portal-root .footer-area .footer-top .row > .col-xl-4:last-child,
  .portal-shell .footer-area .footer-top .row > .col-lg-5,
  .portal-root .footer-area .footer-top .row > .col-lg-5 {
    flex: 1 1 36%;
    max-width: 42%;
  }
}

.portal-shell .footer-area .footer-logo img,
.portal-root .footer-area .footer-logo img {
  max-width: 180px;
  height: auto;
}

.portal-shell .footer-area .footer-tittle,
.portal-root .footer-area .footer-tittle {
  margin: 0 0 1rem;
}

.portal-shell .footer-area .footer-tittle span,
.portal-root .footer-area .footer-tittle span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2937;
}

.portal-shell .footer-area .footer-cap ul,
.portal-root .footer-area .footer-cap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.portal-shell .footer-area .footer-cap li,
.portal-root .footer-area .footer-cap li {
  margin: 0;
  padding: 0;
}

.portal-shell .footer-area .footer-cap a,
.portal-root .footer-area .footer-cap a {
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #2563eb;
  text-decoration: none;
}

.portal-shell .footer-area .footer-cap a:hover,
.portal-root .footer-area .footer-cap a:hover {
  text-decoration: underline;
}

.portal-shell .footer-area .footer-bottom .row,
.portal-root .footer-area .footer-bottom .row {
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

.portal-shell .footer-area .footer-copy-right,
.portal-root .footer-area .footer-copy-right {
  text-align: center;
  width: 100%;
}

/* Banner de cookies LGPD */
.portal-shell .lgpd,
.portal-root .lgpd {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10050;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  font-family: inherit;
}

@media (min-width: 768px) {
  .portal-shell .lgpd,
  .portal-root .lgpd {
    left: auto;
    right: 1.25rem;
    margin: 0;
  }
}

.portal-shell .lgpd .title,
.portal-root .lgpd .title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.portal-shell .lgpd .description,
.portal-root .lgpd .description {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.portal-shell .lgpd .actions,
.portal-root .lgpd .actions {
  display: flex;
  justify-content: flex-end;
}

.portal-shell .lgpd .accept,
.portal-root .lgpd .accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #0a2540;
  border: 1px solid #0a2540;
  border-radius: 8px;
  cursor: pointer;
}

.portal-shell .lgpd .accept:hover,
.portal-root .lgpd .accept:hover {
  background: #163a5c;
}
