/**
 * PATTRI — Páginas jurídicas (Política de Privacidade / Termos de Uso)
 * e banner de consentimento de cookies (LGPD).
 * Reaproveita as variáveis de cor/tipografia de style.css.
 */

/* ---------------------------------------------------------------
 * Conteúdo das páginas jurídicas: coluna única, mais estreita que
 * o layout de artigo (post-content já dá a tipografia de h2/p/ul/table).
 * ------------------------------------------------------------- */
.legal-hero .post-hero-inner { max-width: 820px; }
.legal-content {
  max-width: 780px;
  margin-inline: auto;
}

.legal-inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---------------------------------------------------------------
 * Rodapé: botão "Preferências de cookies" ao lado dos links legais
 * ------------------------------------------------------------- */
.footer-cookie-prefs {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  opacity: 0.85;
}
.footer-cookie-prefs:hover { opacity: 1; }

/* ---------------------------------------------------------------
 * Banner de cookies
 * ------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 -20px 40px -20px rgba(11, 17, 86, 0.5);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.cookie-banner-text {
  flex: 1 1 380px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.cookie-banner-text a { color: var(--blue-light); font-weight: 600; }

.cookie-banner-prefs {
  flex: 1 1 100%;
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 1rem;
}
.cookie-pref-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue-light); }
.cookie-pref-locked {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-banner-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cookie-banner-actions--save { flex: 1 1 100%; justify-content: flex-end; }

.cookie-btn {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cookie-btn-primary { background: var(--blue-light); color: var(--navy-deep); }
.cookie-btn-primary:hover { filter: brightness(1.05); }
.cookie-btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.cookie-btn-outline:hover { border-color: var(--white); }
.cookie-btn-ghost { background: transparent; color: rgba(255, 255, 255, 0.85); border: none; text-decoration: underline; text-underline-offset: 2px; padding-inline: 0.4rem; }

@media (max-width: 640px) {
  .cookie-banner-inner { padding: 1.25rem 1.25rem 1.5rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; text-align: center; }
}

/* [hidden] precisa vencer .cookie-banner-prefs/.cookie-banner-actions (que
   definem display:grid/flex), senão o painel de preferências e o botão
   "Salvar" ficam visíveis mesmo antes de clicar em "Personalizar". */
.cookie-banner-prefs[hidden],
.cookie-banner-actions[hidden] {
  display: none;
}
