/* ============================================================================
   Infranet Digital — páginas de documento (privacidade e termos)
   ----------------------------------------------------------------------------
   Folha independente de main.css: estas páginas são só texto corrido e não
   precisam de nenhuma seção da home. Os tokens abaixo espelham os de
   main.css — ao mexer na paleta da marca, atualize os dois arquivos.
   ========================================================================= */
:root {
	--bg: #00081f;
	--bg-deep: #00030f;
	--bg-card: #001030;
	--fg: #eef4fb;
	--fg-bright: #fff;
	--muted: #7f93b5;
	--muted-2: #4e6183;
	--accent: #00a2ff;
	--accent-bright: #66d4ff;
	--accent-deep: #0662b9;
	--border: rgb(238 244 251 / 10%);
	--border-bright: rgb(238 244 251 / 22%);
	--font-display: 'Fraunces', georgia, 'Times New Roman', serif;
	--font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', roboto, sans-serif;
}
* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
html {
	color-scheme: dark;
	scroll-behavior: smooth;
	scroll-padding-top: 2rem;
	scrollbar-width: thin;
	scrollbar-color: var(--accent-deep) rgb(0 8 31 / 60%);
}
body {
	overflow-x: hidden;
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.75;
	color: var(--fg);
	background: var(--bg);
	background-image:
		radial-gradient(ellipse 70% 40% at 20% 0%, rgb(6 98 185 / 18%), transparent 60%),
		linear-gradient(180deg, var(--bg-deep), var(--bg) 25%, var(--bg) 75%, var(--bg-deep));
}
::selection {
	color: var(--bg-deep);
	background: var(--accent);
}
img {
	max-width: 100%;
	height: auto;
}
/* ===== Cabeçalho ===== */
.doc-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.6rem 2rem;
	background: rgb(0 3 15 / 40%);
	border-bottom: 1px solid var(--border);
	gap: 1.5rem;
	flex-wrap: wrap;
	backdrop-filter: blur(8px);
}
.doc-header .home {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
	color: inherit;
}
.doc-header .home img {
	width: 30px;
	height: 30px;
}
.doc-header .brand {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-size: 1.15rem;
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1;
}
.doc-header .brand .italic {
	font-style: italic;
	color: var(--accent);
}
.doc-header nav {
	display: flex;
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	gap: 1.5rem;
	letter-spacing: 0.18em;
}
.doc-header nav a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.3s;
}
.doc-header nav a:hover,
.doc-header nav a[aria-current='page'] {
	color: var(--accent);
}
/* ===== Corpo do documento ===== */
.doc {
	margin: 0 auto;
	padding: 5rem 2rem 4rem;
	max-width: 780px;
}
.doc-eyebrow {
	display: flex;
	align-items: center;
	margin-bottom: 1.6rem;
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--accent);
	gap: 0.75rem;
	letter-spacing: 0.3em;
}
.doc-eyebrow .line {
	width: 28px;
	height: 1px;
	background: var(--accent);
}
.doc h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	font-weight: 200;
	line-height: 1.05;
	font-optical-sizing: auto;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.doc h1 .italic {
	font-style: italic;
	font-weight: 300;
	color: var(--accent);
}
.doc-meta {
	margin-top: 1.8rem;
	padding-top: 1.5rem;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 2;
	text-transform: uppercase;
	color: var(--muted-2);
	border-top: 1px solid var(--border);
	letter-spacing: 0.16em;
}
.doc-meta strong {
	font-weight: 500;
	color: var(--muted);
}
.doc-lead {
	margin: 2.5rem 0 0;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--muted);
	text-wrap: pretty;
}
.doc-lead strong {
	font-weight: 400;
	color: var(--fg);
}
/* Sumário */
.doc-toc {
	margin: 3rem 0 0;
	padding: 1.8rem 2rem;
	background: rgb(0 16 48 / 50%);
	border: 1px solid var(--border);
	border-radius: 4px;
}
.doc-toc h2 {
	margin: 0 0 1.2rem;
	font-size: 0.66rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--accent);
	letter-spacing: 0.2em;
}
.doc-toc ol {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.55rem 2rem;
}
.doc-toc li {
	counter-increment: toc;
	font-size: 0.86rem;
	line-height: 1.5;
}
.doc-toc li::before {
	margin-right: 0.7rem;
	font-size: 0.7rem;
	color: var(--muted-2);
	content: counter(toc, decimal-leading-zero);
	letter-spacing: 0.05em;
}
.doc-toc a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.3s;
}
.doc-toc a:hover {
	color: var(--fg);
}
/* Seções numeradas — a ordem aqui é a do próprio documento, não decoração. */
.doc section {
	margin-top: 3.5rem;
	counter-increment: sec;
}
.doc-body {
	counter-reset: sec;
}
.doc section h2 {
	display: flex;
	align-items: baseline;
	margin: 0 0 1.2rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 300;
	line-height: 1.25;
	font-optical-sizing: auto;
	letter-spacing: -0.015em;
	scroll-margin-top: 6rem;
	gap: 0.9rem;
}
.doc section h2::before {
	padding-top: 0.35rem;
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--accent);
	content: counter(sec, decimal-leading-zero);
	letter-spacing: 0.14em;
	flex: 0 0 auto;
}
.doc section h3 {
	margin: 2.2rem 0 0.9rem;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--fg);
	letter-spacing: 0.14em;
}
.doc p {
	margin: 0 0 1.15rem;
	font-size: 0.97rem;
	color: var(--muted);
}
.doc p strong,
.doc li strong {
	font-weight: 500;
	color: var(--fg);
}
.doc a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid rgb(0 162 255 / 35%);
	transition:
		color 0.3s,
		border-color 0.3s;
	overflow-wrap: anywhere;
}
.doc a:hover {
	color: var(--accent-bright);
	border-color: var(--accent-bright);
}
.doc ul {
	margin: 0 0 1.15rem;
	padding-left: 0;
	list-style: none;
}
.doc ul li {
	position: relative;
	margin-bottom: 0.7rem;
	padding-left: 1.5rem;
	font-size: 0.97rem;
	color: var(--muted);
}
.doc ul li::before {
	position: absolute;
	top: 0.72em;
	left: 0.15rem;
	width: 5px;
	height: 5px;
	background: var(--accent-deep);
	border-radius: 50%;
	content: '';
}
/* Destaque: usado no que o visitante mais procura nestas páginas. */
.doc-note {
	margin: 1.8rem 0;
	padding: 1.4rem 1.6rem;
	font-size: 0.92rem;
	line-height: 1.7;
	background: rgb(0 162 255 / 5%);
	border-left: 2px solid var(--accent);
}
.doc-note p:last-child {
	margin-bottom: 0;
}
/* Ficha de identificação legal — mesmo bloco do rodapé da home. */
.doc-dl {
	display: grid;
	margin: 1.5rem 0 0;
	padding: 1.6rem;
	font-size: 0.85rem;
	line-height: 1.6;
	background: rgb(0 16 48 / 50%);
	border: 1px solid var(--border);
	border-radius: 4px;
	grid-template-columns: auto 1fr;
	gap: 0.6rem 1.6rem;
}
.doc-dl dt {
	padding-top: 0.2rem;
	font-size: 0.66rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--muted-2);
	letter-spacing: 0.08em;
	white-space: nowrap;
}
.doc-dl dd {
	margin: 0;
	font-weight: 300;
	color: var(--fg);
	overflow-wrap: anywhere;
}
/* ===== Rodapé ===== */
.doc-footer {
	margin-top: 5rem;
	padding: 2.5rem 2rem;
	font-size: 0.72rem;
	line-height: 2;
	text-align: center;
	color: var(--muted-2);
	background: linear-gradient(180deg, transparent, rgb(0 3 15 / 50%));
	border-top: 1px solid var(--border);
	letter-spacing: 0.06em;
}
.doc-footer a {
	color: var(--muted-2);
	text-decoration: none;
	transition: color 0.3s;
}
.doc-footer a:hover {
	color: var(--accent);
}
.doc-footer .sep {
	margin: 0 0.5rem;
	opacity: 0.4;
}
/* ===== Acessibilidade ===== */
.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99;
	padding: 0.9rem 1.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--bg-deep);
	background: var(--accent);
	transition: transform 0.25s;
	transform: translateY(-120%);
	letter-spacing: 0.18em;
	text-decoration: none;
}
.skip-link:focus {
	transform: translateY(0);
}
:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
	border-radius: 2px;
}
/* ===== Responsivo ===== */
@media (width <= 768px) {
	.doc-header {
		padding: 1.2rem 1.25rem;
	}
	.doc-header nav {
		gap: 1rem;
		font-size: 0.66rem;
	}
	.doc {
		padding: 3.5rem 1.25rem 3rem;
	}
	.doc-toc {
		padding: 1.4rem 1.3rem;
	}
	.doc-toc ol {
		grid-template-columns: 1fr;
	}
	.doc-dl {
		grid-template-columns: 1fr;
		gap: 0.2rem;
		padding: 1.2rem;
	}
	.doc-dl dt {
		padding-top: 0.9rem;
	}
	.doc-dl dt:first-child {
		padding-top: 0;
	}
	.doc section h2 {
		flex-direction: column;
		gap: 0.35rem;
	}
	.doc section h2::before {
		padding-top: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}
@media print {
	.doc-header,
	.skip-link {
		display: none;
	}
	html,
	body {
		color: #000;
		background: #fff;
	}
	.doc {
		padding: 0;
		max-width: none;
	}
	.doc h1,
	.doc section h2,
	.doc-dl dd {
		color: #000;
	}
	.doc p,
	.doc ul li,
	.doc-lead {
		color: #222;
	}
	.doc a {
		color: #0662b9;
	}
	.doc-note {
		background: #f4f7fb;
		border-color: #0662b9;
	}
	.doc-toc {
		display: none;
	}
	.doc section {
		break-inside: avoid-page;
	}
}
