/* ======================================================================
   CIO CODEX – PÁGINAS LEGAIS (Privacidade / Cookies / Termos)
   Hero no padrão Produtos + conteúdo tipográfico escuro
   ====================================================================== */

#cio-legal.cio-legal-wrap {
	--lg-black: #020101;
	--lg-blue: #02cbfe;
	--lg-white: #ffffff;
	--lg-gray: #9a9a9a;
	--lg-muted: rgba(255, 255, 255, 0.72);
	--lg-border: rgba(2, 203, 254, 0.15);
	--lg-card: #0c0c0c;
	background: var(--lg-black);
	color: var(--lg-white);
	min-height: 60vh;
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	position: relative;
	z-index: 0;
	isolation: isolate;
}

#cio-legal *,
#cio-legal *::before,
#cio-legal *::after {
	box-sizing: border-box;
}

.cio-legal-container {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 28px;
}

/* Hero — padrão Produtos */
#cio-legal .cio-prod-hero.cio-legal-hero {
	position: relative;
	padding: 100px 0 60px;
	text-align: center;
	overflow: hidden;
	background: var(--lg-black);
	border-bottom: 1px solid var(--lg-border);
	margin: 0;
}

#cio-legal .cio-legal-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(2, 203, 254, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(2, 203, 254, 0.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
	pointer-events: none;
}

#cio-legal .cio-legal-hero::after {
	content: '';
	position: absolute;
	top: -10%;
	left: 50%;
	transform: translateX(-50%);
	width: min(720px, 90vw);
	height: 280px;
	background: radial-gradient(ellipse at center, rgba(2, 203, 254, 0.12) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
	animation: cio-legal-glow 8s ease-in-out infinite alternate;
}

@keyframes cio-legal-glow {
	from { opacity: 0.55; }
	to { opacity: 1; }
}

#cio-legal .cio-legal-hero .cio-prod-hero-container {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}

#cio-legal .cio-legal-hero .cio-prod-prelabel {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lg-blue);
	margin-bottom: 18px;
}

#cio-legal .cio-legal-hero .cio-prod-hero-title {
	font-size: clamp(2.4rem, 5.5vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--lg-white);
	margin: 0 0 18px;
}

#cio-legal .cio-legal-hero .cio-prod-hero-subtitle {
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--lg-gray);
	margin: 0 auto;
	max-width: 640px;
}

/* Conteúdo — abaixo do header sticky */
.cio-legal-content {
	padding: 56px 0 100px;
	background: #050505;
	position: relative;
	z-index: 0;
}

.cio-legal-entry {
	color: var(--lg-muted);
	font-size: 1.02rem;
	line-height: 1.75;
}

.cio-legal-entry > *:first-child {
	margin-top: 0;
}

.cio-legal-entry h1,
.cio-legal-entry h2,
.cio-legal-entry h3,
.cio-legal-entry h4 {
	color: var(--lg-white);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 2.2em 0 0.75em;
}

.cio-legal-entry h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.cio-legal-entry h2 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }
.cio-legal-entry h3 { font-size: 1.2rem; }
.cio-legal-entry h4 { font-size: 1.05rem; }

.cio-legal-entry p {
	margin: 0 0 1.15em;
}

.cio-legal-entry a {
	color: var(--lg-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cio-legal-entry a:hover,
.cio-legal-entry a:focus-visible {
	color: #7ae0ff;
}

.cio-legal-entry ul,
.cio-legal-entry ol {
	margin: 0 0 1.25em;
	padding-left: 1.35rem;
}

.cio-legal-entry li {
	margin-bottom: 0.45em;
}

.cio-legal-entry strong,
.cio-legal-entry b {
	color: var(--lg-white);
	font-weight: 700;
}

.cio-legal-entry hr {
	border: 0;
	border-top: 1px solid var(--lg-border);
	margin: 2.5em 0;
}

.cio-legal-entry blockquote {
	margin: 1.5em 0;
	padding: 14px 18px;
	border-left: 3px solid var(--lg-blue);
	background: rgba(2, 203, 254, 0.05);
	color: var(--lg-muted);
}

@media (max-width: 768px) {
	#cio-legal .cio-prod-hero.cio-legal-hero {
		padding: 72px 0 48px;
	}

	#cio-legal .cio-legal-hero::after {
		height: 180px;
	}

	.cio-legal-content {
		padding: 40px 0 72px;
	}

	.cio-legal-container {
		padding: 0 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#cio-legal .cio-legal-hero::after {
		animation: none;
	}
}
