/* legal.css — Termos de Uso e Política de Privacidade do sunara.com.br.
 *
 * Formatação inspirada nas normas ABNT para documentos (NBR 14724 / NBR 6024),
 * adaptada à tela: Arial 12 pt, texto justificado, entrelinha 1,5, recuo de
 * 1,25 cm na primeira linha, seções primárias numeradas em caixa alta e
 * negrito, subseções 1.1, 1.2…, alíneas a) b) c). Na impressão, margens
 * 3 cm (superior/esquerda) e 2 cm (inferior/direita).
 *
 * Por que uma folha própria: as páginas legais carregavam o Tailwind por CDN
 * e o <style> inline era sobrescrito pelo preflight (h2 sem tamanho, <ul> sem
 * marcador, .container sem largura). Aqui não há dependência externa.
 */

:root {
  --ink: #111111;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --rule: #e4e4e7;
  --link: #1d4ed8;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12pt;            /* ABNT: 12 pt no texto */
  line-height: 1.5;           /* ABNT: entrelinha 1,5 */
}

a { color: var(--link); }
a:hover { text-decoration: underline; }

/* ── Cabeçalho do site ─────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.5rem;
}
.site-header .row {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img { height: 1.75rem; display: block; }
.site-header .back { font-size: 0.8rem; color: var(--ink-soft); text-decoration: none; }
.site-header .back:hover { color: var(--ink); }

/* ── Documento ─────────────────────────────────────────────────────────── */
.doc {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.doc .updated {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc h1 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.doc .lead {
  margin: 0 0 2rem;
  text-indent: 0;
  color: var(--ink-soft);
}

/* Seção primária: numerada, caixa alta, negrito, alinhada à esquerda (NBR 6024). */
.doc h2 {
  margin: 2.5rem 0 1rem;
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  page-break-after: avoid;
}

/* Seção secundária sem número (blocos de abertura e fechamento). */
.doc h3 {
  margin: 2rem 0 0.75rem;
  font-size: 12pt;
  font-weight: 700;
  page-break-after: avoid;
}

.doc p {
  margin: 0 0 0.75rem;
  text-align: justify;
  text-indent: 1.25cm;        /* ABNT: recuo de parágrafo */
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Subseção numerada (1.1, 1.2…): o número abre a linha, sem recuo. */
.doc p.sub { text-indent: 0; padding-left: 0; }
.doc p.sub .num {
  display: inline-block;
  min-width: 2.6rem;
  font-weight: 700;
}
.doc p.sub .num.wide { min-width: 3.2rem; }

/* Alíneas: a) b) c), texto em minúscula, recuadas. */
.doc ol.alineas {
  list-style: none;
  counter-reset: alinea;
  margin: 0 0 0.75rem;
  padding: 0 0 0 2.4rem;
}
.doc ol.alineas li {
  counter-increment: alinea;
  position: relative;
  margin: 0 0 0.25rem;
  text-align: justify;
  hyphens: auto;
}
.doc ol.alineas li::before {
  content: counter(alinea, lower-alpha) ")";
  position: absolute;
  left: -1.6rem;
  font-weight: 700;
}

/* Tabelas (política de privacidade). */
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 11pt;
}
.doc th, .doc td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.doc th { background: #f4f4f5; font-weight: 700; }

.doc .contact {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-indent: 0;
}

.doc .footer-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}
.doc .footer-links a.home { color: var(--ink-soft); text-decoration: none; }
.doc .footer-links a.home:hover { color: var(--ink); }

/* ── Celular ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 11pt; }
  .doc { padding: 1.5rem 1rem 3rem; }
  .doc h1 { font-size: 1.6rem; }
  .doc p { text-indent: 0.8cm; }
  .doc ol.alineas { padding-left: 1.8rem; }
  .doc ol.alineas li::before { left: -1.4rem; }
}

/* ── Impressão (ABNT: A4, 3 cm sup./esq., 2 cm inf./dir.) ─────────────── */
@media print {
  @page { size: A4; margin: 3cm 2cm 2cm 3cm; }
  body { font-size: 12pt; color: #000; }
  .site-header, .doc .footer-links { display: none; }
  .doc { max-width: none; padding: 0; }
  .doc a { color: #000; text-decoration: none; }
  .doc h2 { margin-top: 1.5rem; }
}
