/* Privacidade Foobá — banner, preferências e botão. Variáveis: --fp-cor (destaque), --fp-fundo, --fp-texto, --fp-borda. */
.fp, .fp-modal, .fp-fab, .fp-aviso, .fooba-embed {
	--fp-cor: var(--primary-color, #002489);
	--fp-fundo: #fff;
	--fp-texto: #1c1e23;
	--fp-suave: #4b5563;
	--fp-borda: #c9ced8;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--fp-texto);
}
.fp *, .fp-modal *, .fooba-embed * { box-sizing: border-box; }

/* 1ª camada: faixa fixa, sem empurrar o conteúdo (não gera salto de layout) */
.fp { position: fixed; z-index: 99998; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 980px; margin: 0 auto; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; align-items: center; background: var(--fp-fundo); border: 1px solid var(--fp-borda); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); animation: fp-sobe .25s ease-out; }
.fp--centro { bottom: 50%; transform: translateY(50%); max-width: 620px; grid-template-columns: 1fr; }
.fp__titulo { margin: 0 0 4px; padding: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.25; color: var(--fp-texto); }
.fp__texto { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--fp-suave); }
.fp__links { margin: 6px 0 0; font-size: .85rem; }
.fp__links a { color: var(--fp-cor); text-decoration: underline; }
.fp__acoes, .fp-modal__acoes { display: flex; flex-wrap: wrap; gap: 8px; }

/* os três botões têm o MESMO peso visual (guia de cookies da ANPD: rejeitar tão fácil quanto aceitar) */
.fp__btn { flex: 1 1 auto; min-height: 44px; padding: 10px 16px; border: 2px solid var(--fp-cor); border-radius: 10px; background: var(--fp-fundo); color: var(--fp-cor); font: inherit; font-size: .9rem; font-weight: 800; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s; }
.fp__btn:hover { background: var(--fp-cor); color: #fff; }
.fp__btn:focus-visible, .fp-modal__x:focus-visible, .fp-fab:focus-visible, .fooba-embed__btn:focus-visible { outline: 3px solid var(--fp-texto); outline-offset: 2px; }

/* 2ª camada */
.fp-travado { overflow: hidden; }
.fp-modal { position: fixed; z-index: 99999; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(10, 14, 25, .55); }
.fp-modal__caixa { display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: min(90vh, 760px); background: var(--fp-fundo); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); outline: none; }
.fp-modal__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--fp-borda); }
.fp-modal__topo h2 { margin: 0; padding: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.fp-modal__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--fp-texto); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.fp-modal__x:hover { background: #eef1f6; }
.fp-modal__corpo { flex: 1 1 auto; overflow: auto; padding: 14px 20px; }
.fp-modal__intro, .fp-modal__enc { margin: 0 0 12px; font-size: .9rem; line-height: 1.45; color: var(--fp-suave); }
.fp-modal__gpc { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: #eef4ff; font-size: .85rem; }
.fp-modal__acoes { padding: 14px 20px; border-top: 1px solid var(--fp-borda); }
.fp-cat { padding: 12px 0; border-bottom: 1px solid #e5e8ee; }
.fp-cat:last-of-type { border-bottom: 0; }
.fp-cat__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-cat__topo h3 { margin: 0; padding: 0; font-size: 1rem; font-weight: 800; line-height: 1.2; }
.fp-cat__desc { margin: 6px 0 0; font-size: .88rem; line-height: 1.45; color: var(--fp-suave); }
.fp-cat__det { margin-top: 8px; font-size: .85rem; }
.fp-cat__det summary { cursor: pointer; font-weight: 700; color: var(--fp-cor); }
.fp-cat__det ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fp-cat__det li { padding: 8px 10px; border-radius: 8px; background: #f6f7fb; }
.fp-cat__det li strong { display: block; }
.fp-cat__det li span { display: block; margin-top: 2px; color: var(--fp-suave); }

/* interruptor */
.fp-sw { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex: none; }
.fp-sw input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.fp-sw__t { position: relative; width: 44px; height: 26px; border-radius: 99px; background: #9aa3b2; transition: background .15s; }
.fp-sw__t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.fp-sw input:checked + .fp-sw__t { background: var(--fp-cor); }
.fp-sw input:checked + .fp-sw__t::after { transform: translateX(18px); }
.fp-sw input:focus-visible + .fp-sw__t { outline: 3px solid var(--fp-texto); outline-offset: 2px; }
.fp-sw.is-fixa { cursor: default; opacity: .75; }
.fp-sw__r { font-size: .78rem; font-weight: 700; color: var(--fp-suave); }

/* botão flutuante e aviso */
.fp-fab-grupo { position: fixed; z-index: 99990; left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
.fp-fab-grupo[hidden] { display: none; }
.fp-fab { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--fp-cor); border-radius: 50%; background: var(--fp-fundo); color: var(--fp-cor); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; }
.fp-fab:hover { background: var(--fp-cor); color: #fff; }
.fp-aviso { position: fixed; z-index: 99999; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 10px; background: #1c1e23; color: #fff; font-size: .9rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fp-aviso.is-on { opacity: 1; transform: translate(-50%, 0); }

/* conteúdo de terceiros bloqueado */
.fooba-embed { display: flex; align-items: center; justify-content: center; width: 100%; padding: 16px; border: 1px dashed var(--fp-borda); border-radius: 12px; background: #f6f7fb; text-align: center; }
.fooba-embed__in { max-width: 460px; }
.fooba-embed__in p { margin: 0 0 12px; font-size: .9rem; line-height: 1.45; color: var(--fp-suave); }
.fooba-embed__btn { min-height: 44px; padding: 10px 18px; border: 2px solid var(--fp-cor); border-radius: 10px; background: var(--fp-cor); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.fooba-embed__link { padding: 10px 8px; border: 0; background: none; color: var(--fp-cor); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }

@keyframes fp-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
	.fp { grid-template-columns: 1fr; left: 8px; right: 8px; padding: 14px; }
	.fp__acoes .fp__btn, .fp-modal__acoes .fp__btn { flex: 1 1 100%; }
	.fp--centro { transform: translateY(50%); }
}
@media (prefers-reduced-motion: reduce) { .fp, .fp-aviso, .fp-sw__t, .fp-sw__t::after { animation: none; transition: none; } }

/* declaração de cookies e quais dados tratamos ([fooba_cookies], [fooba_dados]) */
.fooba-doc { overflow-x: auto; }
.fooba-doc__tabela { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.fooba-doc__tabela th, .fooba-doc__tabela td { padding: 8px 10px; border-bottom: 1px solid #d8dce3; text-align: left; vertical-align: top; }
.fooba-doc__tabela th { background: #f1f4fa; font-weight: 800; white-space: nowrap; }
.fooba-doc__tabela code { font-size: .85em; word-break: break-all; }
@media (max-width: 700px) {
	.fp { gap: 10px; padding: 12px; }
	.fp__titulo { font-size: 1rem; }
	.fp__texto { font-size: .84rem; line-height: 1.4; }
	.fp__acoes { gap: 6px; }
	.fp__btn { min-height: 40px; padding: 7px 12px; font-size: .86rem; }
}

/* pílula dividida: botão do plugin Acessibilidade (esquerda) + privacidade (direita), no mesmo canto.
   Usa as variáveis do Acessibilidade (--fa-*) para acompanhar os temas de contraste. */
.fa-widget.fp-pilula { display: flex; align-items: stretch; height: 56px; border-radius: 28px; background: var(--fa-destaque); color: var(--fa-destaque-fg); border: 2px solid var(--fa-bg); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.fa-widget.fp-pilula .fa-toggle { width: 54px; height: 100%; border: 0; border-radius: 26px 0 0 26px; background: transparent; color: inherit; box-shadow: none; }
.fa-widget.fp-pilula .fa-toggle:hover { filter: none; background: rgba(255, 255, 255, .2); }
.fp-pilula__sep { align-self: center; flex: none; width: 1px; height: 28px; background: currentColor; opacity: .5; }
.fp-pilula__priv { display: flex; align-items: center; justify-content: center; width: 54px; height: 100%; padding: 0; border: 0; border-radius: 0 26px 26px 0; background: transparent; color: inherit; cursor: pointer; }
.fp-pilula__priv:hover { background: rgba(255, 255, 255, .2); }
.fp-pilula__priv:focus-visible { outline: 3px solid var(--fa-fg, #111); outline-offset: 2px; box-shadow: 0 0 0 5px var(--fa-bg, #fff); }
.fa-widget.fp-pilula .fa-painel { bottom: 68px; }

/* fechar a pílula / o botão avulso: pequeno "×" no canto; o leitor encontra as opções no menu do site */
.fp-pilula__x, .fp-fab__x { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--fa-borda, #767676); border-radius: 50%; background: var(--fa-bg, #fff); color: var(--fa-fg, #111); font: 700 16px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); opacity: .9; }
.fp-fab__x { --fa-bg: #fff; --fa-fg: #1c1e23; --fa-borda: #9aa3b2; }
.fp-pilula__x:hover, .fp-fab__x:hover { opacity: 1; background: var(--fa-fg, #111); color: var(--fa-bg, #fff); }
.fp-pilula__x:focus-visible, .fp-fab__x:focus-visible { outline: 3px solid var(--fa-fg, #111); outline-offset: 2px; }
html.fp-botoes-ocultos .fa-widget.fp-pilula, html.fp-botoes-ocultos .fp-fab-grupo { display: none !important; }

/* botão "Privacidade" dentro do menu do site ([fooba_privacidade_menu]); o tema ajusta as cores no menu escuro */
.prv-menu { display: grid; gap: 8px; }
.prv-menu__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border: 1.5px solid #c9ced8; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.prv-menu__btn:hover { border-color: currentColor; }
.prv-menu__btn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.prv-menu__btn svg { flex: none; }
.prv-menu__link { display: inline-block; padding: 4px 2px; color: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .prv-menu__btn { transition: none; } }

/* com o banner aberto, o botao flutuante sobe acima dele (--fp-altura vem do banner.js) */
html.fp-banner-aberto .fa-widget.fp-pilula, html.fp-banner-aberto .fp-fab-grupo { bottom: calc(var(--fp-altura, 0px) + 28px); transition: bottom .2s ease; }
