/* =========================================================
   iMiles — Páginas legais (privacidade, termos, skypoints, excluir)
   CSS autocontido e leve: não depende do styles.css da landing page,
   para que estas páginas funcionem em qualquer domínio.
   Paleta: #0090a2 teal · #22294d navy · #d6a24d dourado
   ========================================================= */

:root {
	--teal: 187 100% 32%;
	--navy: 230 39% 22%;
	--gold: 37 63% 57%;
	--bg: #fff;
	--fg: hsl(var(--navy));
	--muted: hsl(225 12% 46%);
	--card: hsl(200 33% 98%);
	--border: hsl(205 22% 90%);
	--shadow-sm: 0 1px 2px hsl(var(--navy) / .04), 0 1px 3px hsl(var(--navy) / .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	background: var(--bg); color: var(--fg);
	line-height: 1.65; -webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.2; }
a { color: hsl(var(--teal)); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid hsl(var(--teal)); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.lg-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.lg-header__in {
	max-width: 52rem; margin: 0 auto; padding: .875rem 1.25rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lg-logo img { height: 1.75rem; width: auto; }
.lg-back {
	display: inline-flex; align-items: center; gap: .375rem;
	min-height: 2.75rem; /* área de toque */
	font-size: .875rem; font-weight: 600; color: var(--muted);
}
.lg-back:hover { color: hsl(var(--teal)); text-decoration: none; }

/* ---------- Conteúdo ---------- */
.lg-wrap { max-width: 52rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

.lg-tag {
	display: inline-flex; align-items: center; gap: .5rem;
	border: 1px solid hsl(var(--teal) / .25); background: hsl(var(--teal) / .08);
	color: hsl(var(--teal)); border-radius: 9999px; padding: .375rem 1rem;
	font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.lg-title { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 800; margin: 1rem 0 .5rem; text-wrap: balance; }
.lg-sub { color: var(--muted); font-size: 1rem; }
.lg-updated {
	display: inline-block; margin-top: 1rem; padding: .375rem .75rem;
	background: var(--card); border: 1px solid var(--border); border-radius: .5rem;
	font-size: .8125rem; color: var(--muted);
}

.lg-wrap h2 {
	font-size: 1.375rem; font-weight: 700; margin: 2.75rem 0 1rem;
	padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.lg-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.lg-wrap h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.75rem 0 .625rem; }
.lg-wrap p { margin-bottom: 1rem; color: hsl(var(--navy) / .88); }
.lg-wrap ul, .lg-wrap ol { margin: 0 0 1.25rem 1.25rem; }
.lg-wrap li { margin-bottom: .625rem; color: hsl(var(--navy) / .88); }
.lg-wrap strong, .lg-wrap b { color: var(--fg); font-weight: 700; }

/* termo em destaque dentro de listas (ex.: "Pagamento:") */
.lg-term { font-weight: 700; color: var(--fg); }

/* caixa de destaque */
.lg-box {
	background: var(--card); border: 1px solid var(--border);
	border-left: 3px solid hsl(var(--teal)); border-radius: .75rem;
	padding: 1.25rem 1.25rem .25rem; margin: 1.5rem 0;
}
.lg-box--gold { border-left-color: hsl(var(--gold)); background: hsl(var(--gold) / .07); border-color: hsl(var(--gold) / .3); }

/* índice de navegação */
.lg-toc {
	background: var(--card); border: 1px solid var(--border); border-radius: .75rem;
	padding: 1.25rem 1.5rem; margin: 2rem 0 0;
}
.lg-toc p { font-weight: 700; margin-bottom: .75rem; color: var(--fg); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.lg-toc ol { margin: 0 0 0 1.125rem; }
.lg-toc li { font-size: .9375rem; }
/* area de toque confortavel no indice (WCAG 2.5.5) */
.lg-toc li a { display: inline-flex; align-items: center; min-height: 2.5rem; }

/* ---------- Footer ---------- */
.lg-footer {
	border-top: 1px solid var(--border); background: var(--card);
	padding: 2.5rem 1.25rem;
}
.lg-footer__in { max-width: 52rem; margin: 0 auto; }
.lg-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.lg-footer__links a {
	display: inline-flex; align-items: center; min-height: 2.75rem;
	font-size: .875rem; font-weight: 600;
}
.lg-legal { font-size: .75rem; color: var(--muted); line-height: 1.7; }
.lg-legal p { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
