/* GIFO — estrutura editorial estática dos rodapés públicos */
.footer-cols.footer-cols-editorial{
  grid-template-columns:1fr;
  gap:0;
}
.footer-cols.footer-cols-editorial .ft-col-editorial h5{
  color:rgba(181,138,74,.78);
}
.footer-cols.footer-cols-editorial .ft-col-editorial a.ft-highlight{
  color:rgba(240,244,255,.82);
}

/* Evita repetir GIFO ao lado do logótipo gráfico da navegação. */
html.gifo-public .nav-wordmark{
  display:none!important;
}

/* Assinatura VigiForensic discreta: pequena, branca e centrada. */
html.page-vigiforensic .vigi-logo-lockup{
  display:grid;
  place-items:center;
  width:100%;
  max-width:190px;
  height:auto;
  min-height:0;
  overflow:visible;
  margin:0 auto 16px;
}
html.page-vigiforensic .vigi-logo-lockup > div{
  display:none!important;
}
html.page-vigiforensic .vigi-logo-lockup img{
  content:url('/vigiforensic/logo.png?v=3');
  display:block;
  position:static;
  width:100%!important;
  height:auto!important;
  max-width:190px;
  margin:0 auto;
  object-fit:contain!important;
  object-position:center;
  filter:grayscale(1) brightness(0) invert(1) contrast(1.08) drop-shadow(0 8px 14px rgba(0,0,0,.28));
  opacity:.95;
}

/* O aviso legal da página VigiForensic deve manter três cartões simétricos. */
html.page-vigiforensic .legal-grid > div:nth-child(2)::before{
  content:"LEG";
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 32px;
  font-family:'Space Mono',monospace;
  font-size:.6rem;
  font-weight:700;
  color:#B58A4A;
  background:rgba(181,138,74,.1);
  border:1px solid rgba(181,138,74,.28);
}

@media(max-width:719px){
  html.page-vigiforensic .vigi-logo-lockup{
    max-width:135px;
    margin-bottom:14px;
  }
  html.page-vigiforensic .vigi-logo-lockup img{
    max-width:135px;
  }
  .site-footer{
    padding-top:40px;
  }
  .site-footer .footer-inner{
    gap:26px;
  }
  .site-footer .ft-brand{
    padding-bottom:28px;
  }
  /* Usa a assinatura gráfica real em vez do pequeno texto espaçado. */
  html.gifo-public .site-footer .footer-brand-logo{
    width:142px;
    height:34px;
    font-size:0;
    line-height:0;
    letter-spacing:0;
    background:url('/logo.png') left center/contain no-repeat;
  }
  html.gifo-public .site-footer .footer-brand-tag{
    max-width:320px;
    margin-top:9px;
    color:rgba(240,244,255,.4);
    line-height:1.55;
  }
  html.gifo-public .site-footer .footer-socials .social-btn{
    color:rgba(240,244,255,.5);
    border-color:rgba(255,255,255,.12);
  }
  .site-footer .footer-socials{
    flex-wrap:wrap;
  }
  .site-footer .footer-nl{
    width:100%;
    max-width:520px;
    margin-top:10px;
  }
  .site-footer .footer-nl input,
  .site-footer .footer-nl button{
    min-height:46px;
  }
  .site-footer .footer-nl input{
    padding:11px 14px;
    font-size:.86rem;
  }
  .site-footer .footer-nl button{
    width:48px;
    padding:0;
    flex:0 0 48px;
  }
  .site-footer .footer-nl-note{
    margin-top:8px;
    font-size:.7rem;
    line-height:1.55;
  }
  .footer-cols.footer-cols-editorial .ft-col{
    padding:23px 0;
    border-top:1px solid rgba(255,255,255,.065);
  }
  .footer-cols.footer-cols-editorial .ft-col:first-child{
    border-top:none;
    padding-top:0;
  }
  .footer-cols.footer-cols-editorial .ft-col h5{
    margin-bottom:13px;
    padding-bottom:9px;
    font-size:.62rem;
    letter-spacing:2.2px;
  }
  .footer-cols.footer-cols-editorial .ft-col ul{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px 18px;
  }
  .footer-cols.footer-cols-editorial .ft-col li{
    margin:0;
    min-width:0;
  }
  .footer-cols.footer-cols-editorial .ft-col a{
    min-height:42px;
    padding:8px 0;
    display:flex;
    align-items:flex-start;
    font-size:.88rem;
    line-height:1.45;
    color:rgba(240,244,255,.62);
    overflow-wrap:anywhere;
  }
  .footer-cols.footer-cols-editorial .ft-col a.ft-highlight{
    color:rgba(240,244,255,.84);
  }
  .site-footer .footer-bottom{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:8px;
    padding:20px 10px calc(20px + env(safe-area-inset-bottom));
    text-align:center;
    font-size:.68rem;
    line-height:1.7;
  }
  .site-footer .footer-bottom > div{
    width:100%;
    max-width:560px;
  }
  #back-to-top{
    width:44px!important;
    height:44px!important;
    right:16px!important;
    bottom:calc(16px + env(safe-area-inset-bottom))!important;
    font-size:1rem!important;
  }
}

@media(max-width:420px){
  html.page-vigiforensic .vigi-logo-lockup{
    max-width:122px;
    margin-bottom:12px;
  }
  html.page-vigiforensic .vigi-logo-lockup img{
    max-width:122px;
  }
}

@media(max-width:359px){
  html.page-vigiforensic .vigi-logo-lockup,
  html.page-vigiforensic .vigi-logo-lockup img{
    max-width:112px;
  }
  .footer-cols.footer-cols-editorial .ft-col ul{
    grid-template-columns:1fr;
    gap:0;
  }
}

@media(min-width:720px){
  .footer-cols.footer-cols-editorial{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 24px;
  }
}

@media(min-width:1000px){
  .footer-cols.footer-cols-editorial{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
