/* ============================================================================
   consentimento.css — aviso de Termos de Uso / Política de Privacidade   [2026-10-11]
   ----------------------------------------------------------------------------
   Barra fixa no rodapé (todas as páginas) até a pessoa clicar em "Concordo" ou
   fechar (X) — os dois registram a ciência (lib/functions.php [@end-consentimento]).
   Só é carregado enquanto o aviso aparece. Cores pelos tokens --tv-* (seguem
   modo claro/escuro e o tema). Abaixo de 992px o .app-menu (52px + área segura)
   fica fixo embaixo: o aviso sobe para ficar acima dele.
   ============================================================================ */
.tvcs {
	position: fixed; left: 0; right: 0; bottom: 16px; z-index: 1045;
	display: block; padding: 0; pointer-events: none;   /* [2026-10-11 eu] a largura vem do .container interno (= cabeçalho) */
	animation: tvcs-entra .32s cubic-bezier(.2, .9, .3, 1.1) both;
}
.tvcs.tvcs-saindo { animation: tvcs-sai .2s ease forwards; }
@keyframes tvcs-entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes tvcs-sai { to { opacity: 0; transform: translateY(14px); } }

.tvcs-caixa {
	pointer-events: auto; position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 14px;
	width: 100%; max-width: none; padding: 14px 16px 14px 18px;   /* [2026-10-11 eu] era max-width: 1080px */
	color: var(--tv-texto);
	background: var(--tv-superficie);
	border: 1px solid var(--tv-borda);
	border-radius: var(--tv-raio-lg, 16px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
html[data-modo="claro"] .tvcs-caixa { box-shadow: 0 18px 50px rgba(30, 20, 70, .18); }
.tvcs-caixa::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tv-destaque); }

.tvcs-icone {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 12px; font-size: 19px; color: #fff;
	background: linear-gradient(135deg, var(--tv-destaque), color-mix(in srgb, var(--tv-destaque) 60%, #48d0ff));
}
.tvcs-texto { flex: 1 1 auto; min-width: 0; }
.tvcs-tit { display: block; margin: 0 0 3px; font-size: 14px; font-weight: 800; color: var(--tv-texto); }
.tvcs-texto p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tv-texto-2); overflow-wrap: anywhere; }
.tvcs-texto p b { color: var(--tv-texto); font-weight: 700; }
.tvcs-texto a { color: var(--tv-destaque); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tvcs-texto a:hover { filter: brightness(1.15); }

.tvcs-acoes { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.tvcs-bt {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
	font: 700 14px/1 var(--tv-fonte, inherit); white-space: nowrap; cursor: pointer;
	color: #fff; border: 1px solid transparent; border-radius: 11px;
	background: linear-gradient(135deg, var(--tv-destaque), color-mix(in srgb, var(--tv-destaque) 70%, #48d0ff));
	box-shadow: 0 6px 18px color-mix(in srgb, var(--tv-destaque) 30%, transparent);
	transition: transform .12s ease, filter .15s ease;
}
.tvcs-bt:hover { filter: brightness(1.1); }
.tvcs-bt:active { transform: translateY(1px); }
.tvcs-x {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
	font-size: 15px; cursor: pointer; color: var(--tv-texto-2);
	background: var(--tv-superficie-2); border: 1px solid var(--tv-borda); border-radius: 50%;
	transition: color .15s ease, border-color .15s ease;
}
.tvcs-x:hover { color: var(--tv-texto); border-color: var(--tv-destaque); }
.tvcs-bt:focus-visible, .tvcs-x:focus-visible, .tvcs-texto a:focus-visible { outline: 2px solid var(--tv-destaque); outline-offset: 2px; }
.tvcs-bt:disabled, .tvcs-x:disabled { opacity: .6; cursor: wait; }

/* celular e tablet: acima do menu fixo de baixo */
@media (max-width: 991.98px) {
	.tvcs { bottom: calc(52px + env(safe-area-inset-bottom, 0px) + 10px); }
}
/* [2026-10-11 eu] largura do cabeçalho: o .container (mesmas calhas do #header-wrap) define a largura da caixa */
.tvcs > .tvcs-larg { pointer-events: none; }
@media (max-width: 767.98px) {
	.tvcs-caixa { flex-wrap: wrap; gap: 10px 12px; padding: 12px 12px 12px 14px; }
	.tvcs-icone { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; align-self: flex-start; }
	.tvcs-texto { flex-basis: calc(100% - 46px - 48px); }
	.tvcs-texto p { font-size: 12.5px; }
	.tvcs-acoes { display: contents; }
	.tvcs-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; font-size: 13px; }
	.tvcs-bt { order: 3; flex: 1 1 100%; height: 40px; }
	.tvcs-tit { padding-right: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.tvcs, .tvcs.tvcs-saindo { animation: none; }
}
