/* Estilo comum do site (30/11). O estilo de cada página vem junto dela (backend/src/site/paginas). */

/* Fontes da marca servidas pelo próprio site: Open Sans e Quicksand (SIL Open Font License 1.1). */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/site/fontes/open-sans-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/site/fontes/quicksand-latin.woff2) format('woff2');
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #0E2638;
  background: #ffffff;
}
img {
  max-width: 100%;
}

/* Partes que abrem e fecham (menu do celular, lista de soluções, avisos dos formulários). */
[data-se]:not([hidden]) {
  display: contents;
}
.sol:hover > [data-se='solAberto'],
.sol:focus-within > [data-se='solAberto'] {
  display: block;
}

/* Foco visível no teclado (briefing, seção 11). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0CC0DF;
  outline-offset: 2px;
}

.pular {
  position: absolute;
  left: -10000px;
  top: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: #004369;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.pular:focus {
  left: 16px;
}

/* Campo escondido contra robôs: as pessoas não veem; robô que preenche é descartado. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Perguntas frequentes (abrem sem JavaScript). */
.faq-item summary {
  list-style: none;
  box-sizing: border-box;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .seta {
  transition: transform 0.2s;
}
.faq-item[open] .seta {
  transform: rotate(180deg);
}

button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Texto dos artigos: o mesmo desenho da política de privacidade. */
.texto {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 29px;
  color: #3D5466;
}
.texto > * {
  margin: 0;
}
.texto h2 {
  margin-top: 28px;
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  color: #004369;
}
.texto h3 {
  margin-top: 8px;
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #1E6B62;
}
.texto ul,
.texto ol {
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.texto strong {
  color: #0E2638;
}
.texto a {
  color: #004369;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.texto blockquote {
  padding: 18px 22px;
  border-left: 4px solid #2F8F83;
  border-radius: 0 16px 16px 0;
  background: #F3F3F4;
}
.texto blockquote p {
  margin: 0;
}

@media (max-width: 900px) {
  .texto h2 {
    font-size: 24px;
    line-height: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Aviso de cookies (30/11): barra no pé da tela, com "Recusar" tão fácil quanto "Aceitar" (guia de cookies da ANPD). */
.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0 16px 16px;
  pointer-events: none;
}
.cookies[hidden],
.cookies-tipos[hidden],
.cookies-btn[hidden] {
  display: none;
}
.cookies-caixa {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #D8E2E7;
  border-radius: 20px;
  box-shadow: 0 18px 40px -14px rgba(0, 44, 69, 0.35);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.cookies-texto {
  margin: 0;
  flex: 1 1 420px;
  font-size: 15px;
  line-height: 23px;
  color: #3D5466;
}
.cookies-texto a {
  color: #004369;
  font-weight: 600;
}
.cookies-tipos {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cookies-tipo {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #E8EEF1;
  border-radius: 14px;
  font-size: 14px;
  line-height: 20px;
  color: #3D5466;
  cursor: pointer;
}
.cookies-tipo strong {
  display: block;
  color: #004369;
  font-size: 15px;
}
.cookies-tipo input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #2F8F83;
  flex-shrink: 0;
}
.cookies-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookies-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cookies-pri {
  border: 1px solid #004369;
  background: #004369;
  color: #ffffff;
}
.cookies-sec {
  border: 1px solid #004369;
  background: #ffffff;
  color: #004369;
}
.cookies-link {
  border: 0;
  background: transparent;
  color: #004369;
  text-decoration: underline;
  padding: 0 8px;
}
@media (max-width: 700px) {
  .cookies-tipos {
    grid-template-columns: minmax(0, 1fr);
  }
  .cookies-botoes {
    width: 100%;
  }
  .cookies-pri,
  .cookies-sec {
    flex: 1 1 40%;
  }
}

/* 30/11 (teste de todos os tamanhos antes da produção): no celular nada passa da largura da tela. */
main {
  overflow-wrap: break-word;
}
@media (max-width: 900px) {
  /* o título grande da faixa azul ("Quem lidera, cuida.") */
  body .grande {
    font-size: 48px !important;
    line-height: 54px !important;
  }
  /* tabela com rolagem lateral: nunca mais larga que a tela (a coluna em volta não cresce com ela) */
  body .secao div[style*="overflow-x: auto"] {
    max-width: calc(100vw - 40px);
  }
}
@media (max-width: 400px) {
  body .h1 {
    font-size: 32px !important;
    line-height: 38px !important;
  }
  body .h2 {
    font-size: 26px !important;
    line-height: 32px !important;
  }
  body .grande {
    font-size: 40px !important;
    line-height: 46px !important;
  }
}
