/* ==========================================================================
   Noprax - aviso de cookies do site inteiro
   --------------------------------------------------------------------------
   Ate 21/09/2026 o aviso existia so dentro da home. As outras 24 paginas
   carregavam o GTM sem consentimento nenhum (LGPD), e o botao "Preferencias
   de cookies" do rodape chamava uma funcao que nao existia fora da home.

   As regras abaixo sao as da home, sem mudanca. O que muda: elas trazem as
   proprias cores, porque a maioria das paginas nao declara as variaveis da
   marca, e o painel usava uma (--noprax-dark) que so a home tinha.
   ========================================================================== */
#cookie-banner, #cookie-panel, .cookie-reopen-btn {
  --noprax-orange: #F2A516;
  --noprax-orange-deep: #D88E0A;
  --noprax-dark: #141416;
  --noprax-line: rgba(255,255,255,0.08);
  --text: #F5F2EC;
  --text-muted: #8E8E96;
  --text-dim: #56565E;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  font-family: 'Archivo', system-ui, sans-serif;
}
#cookie-banner *, #cookie-panel * { box-sizing: border-box; }

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(20,20,22,0.97);
  border-top: 1px solid var(--noprax-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 20px 48px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner > p {
  flex: 1; min-width: 240px;
  font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0;
}
#cookie-banner a { color: var(--noprax-orange); text-decoration: none; }
#cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.cookie-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; border: 1px solid var(--noprax-line);
  background: transparent; color: var(--text);
  padding: 10px 16px; border-radius: 6px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap; line-height: 1;
}
.cookie-btn:hover { border-color: var(--noprax-orange); color: var(--noprax-orange); }
.cookie-btn.primary { background: var(--noprax-orange); border-color: var(--noprax-orange); color: #000; font-weight: 600; }
.cookie-btn.primary:hover { background: var(--noprax-orange-deep); border-color: var(--noprax-orange-deep); color: #000; }
#cookie-panel {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#cookie-panel.visible { opacity: 1; pointer-events: auto; }
.cookie-panel-box {
  background: var(--noprax-dark); border: 1px solid var(--noprax-line);
  border-radius: 14px; padding: 40px;
  max-width: 520px; width: calc(100% - 40px);
  max-height: 88vh; overflow-y: auto;
}
.cookie-panel-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--noprax-orange); margin-bottom: 10px; }
.cookie-panel-box h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; line-height: 1.1; }
.cookie-panel-box > p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.cookie-category { border-top: 1px solid var(--noprax-line); padding: 18px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-category-info { flex: 1; }
.cookie-category-info strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cookie-category-info p { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.cookie-always-on { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; padding-top: 2px; flex-shrink: 0; }
.cookie-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; display: block; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider { position: absolute; inset: 0; background: var(--text-dim); border-radius: 22px; transition: background 0.25s; }
.cookie-toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.25s; }
.cookie-toggle input:checked ~ .cookie-toggle-slider { background: var(--noprax-orange); }
.cookie-toggle input:checked ~ .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-panel-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.cookie-panel-actions .cookie-btn { flex: 1; text-align: center; }
.cookie-reopen-btn { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-dim); background: none; border: none; cursor: pointer; transition: color 0.2s; padding: 0; }
.cookie-reopen-btn:hover { color: var(--noprax-orange); }
@media (max-width: 768px) {
  #cookie-banner { padding: 20px; flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .cookie-btn { width: 100%; text-align: center; }
  #cookie-panel { align-items: flex-end; }
  .cookie-panel-box { border-radius: 14px 14px 0 0; padding: 28px 20px; max-height: 80vh; }
}
