/*
 * Páginas jurídicas do site (Política de Privacidade e Termos de Uso).
 * Tokens, cabeçalho, rodapé e botões espelham o index.html (layout oficial)
 * para que as páginas pareçam parte do mesmo site. Classes próprias das
 * páginas de texto começam com "l-".
 */

/* ── Reset leve ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; line-height: 1.15; }

/* ── Paleta (idêntica ao index.html) ── */
:root {
  --b-bg:        #fbfbf9;
  --b-surface:   #ffffff;
  --b-tint:      #ebf7ef;
  --b-dark:      #0c1f1a;
  --b-line:      #e7e7df;
  --b-ink-900:   #0c1f1a;
  --b-ink-700:   #37483f;
  --b-ink-500:   #66756c;
  --b-brand:     #007d3e;
  --b-brand-light:#009044;
  --b-brand-dark:#006937;
  --b-brand-darkest:#003d20;
  --b-brand-50:  #ebf7ef;
  --b-brand-100: #cfeedb;
  --b-loss:      #dc2626;
  --b-loss-50:   #fef2f2;
  --b-paper:     #fbfbf9;
  --b-accent:    #fbb03b;
}

/* ── Base ── */
body {
  background: var(--b-bg);
  color: var(--b-ink-700);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--b-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Botões ── */
.b-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.b-btn-primary {
  background: var(--b-brand);
  color: var(--b-paper);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0,125,62,.20), 0 4px 6px -4px rgba(0,125,62,.20);
}
.b-btn-primary:hover { background: var(--b-brand-dark); }
.b-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}

/* ── Cabeçalho ── */
.b-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--b-line);
  background: rgba(251,251,249,.90);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
}
.b-header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-inline: auto;
  max-width: 1120px;
  padding-inline: 20px;
}
.b-logo-img { display: block; height: 36px; width: auto; }
.b-footer .b-logo-img { height: 40px; }
.b-nav { display: none; align-items: center; gap: 2rem; }
.b-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--b-ink-700);
  transition: color .15s;
}
.b-nav a:hover { color: var(--b-brand-dark); }
.b-header-cta { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.b-header-cta .b-btn { white-space: nowrap; }
.b-header-login {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--b-ink-700);
  transition: color .15s;
  white-space: nowrap;
}
.b-header-login:hover { color: var(--b-brand-dark); }

/* ── Rodapé ── */
.b-footer {
  border-top: 1px solid var(--b-line);
  background: var(--b-surface);
}
.b-footer-inner {
  margin-inline: auto;
  max-width: 72rem;
  padding: 3rem 1rem;
}
.b-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}
.b-footer-about { max-width: 24rem; grid-column: 1 / -1; }
.b-footer-about p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--b-ink-500);
}
.b-footer-col p.b-footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--b-ink-900);
}
.b-footer-col ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--b-ink-500);
  list-style: none;
}
.b-footer-col a { transition: color .15s; }
.b-footer-col a:hover { color: var(--b-brand-dark); }
.b-footer-copy {
  margin-top: 2.5rem;
  border-top: 1px solid var(--b-line);
  padding-top: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--b-ink-500);
}

/* ── Página de texto ── */
.l-main { padding-block: 3rem 4rem; }
.l-wrap { margin-inline: auto; max-width: 46rem; padding-inline: 20px; }

.l-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--b-brand-dark);
}
.l-h1 {
  margin-top: 1rem;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b-ink-900);
  text-wrap: balance;
}
.l-meta {
  margin-top: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  color: var(--b-ink-500);
}
.l-intro {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--b-ink-700);
}
.l-intro a, .l-crosslink a, .l-section a {
  color: var(--b-brand-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.l-intro a:hover, .l-crosslink a:hover, .l-section a:hover { color: var(--b-brand-darkest); }

/* Resumo em destaque */
.l-summary {
  margin-top: 2rem;
  border: 1px solid var(--b-brand-100);
  border-radius: 0.75rem;
  background: var(--b-brand-50);
  padding: 1.25rem 1.5rem;
}
.l-summary h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--b-ink-900);
}
.l-summary ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  list-style: none;
}
.l-summary li { position: relative; padding-left: 1.25rem; }
.l-summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--b-brand);
}

/* Sumário */
.l-toc {
  margin-top: 2rem;
  border: 1px solid var(--b-line);
  border-radius: 0.75rem;
  background: var(--b-surface);
  padding: 1.25rem 1.5rem;
}
.l-toc p { font-size: 0.875rem; font-weight: 600; color: var(--b-ink-900); }
.l-toc ol {
  margin-top: 0.75rem;
  columns: 2;
  column-gap: 1.5rem;
  list-style: none;
  counter-reset: toc;
  font-size: 0.875rem;
}
.l-toc li { counter-increment: toc; break-inside: avoid; padding-block: 0.2rem; }
.l-toc li a::before {
  content: counter(toc) '. ';
  font-family: 'IBM Plex Mono', monospace;
  color: var(--b-ink-500);
}
.l-toc a:hover { color: var(--b-brand-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Seções */
.l-section { margin-top: 3rem; scroll-margin-top: 5rem; }
.l-section h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--b-ink-900);
}
.l-section h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--b-ink-900);
}
.l-section p { margin-top: 1rem; line-height: 1.7; }
.l-section ul, .l-section ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  line-height: 1.65;
}
.l-section ul { list-style: disc; }
.l-section ol { list-style: decimal; }
.l-section li::marker { color: var(--b-brand-dark); }
.l-section strong { color: var(--b-ink-900); font-weight: 600; }

.l-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--b-line);
  border-radius: 0.75rem;
  background: var(--b-surface);
}
.l-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.l-table th, .l-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--b-line);
  line-height: 1.5;
}
.l-table th {
  border-top: 0;
  background: var(--b-brand-50);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--b-ink-900);
}

.l-note {
  margin-top: 1rem;
  border-left: 3px solid var(--b-brand);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--b-surface);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.l-contact {
  margin-top: 3rem;
  border-radius: 0.75rem;
  background: var(--b-dark);
  color: var(--b-paper);
  padding: 1.5rem;
}
.l-contact h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--b-paper);
}
.l-contact p { margin-top: 0.5rem; line-height: 1.6; color: rgba(251,251,249,.80); }
.l-contact a { color: var(--b-brand-light); font-weight: 600; }
.l-contact a:hover { color: var(--b-brand-100); }

.l-crosslink { margin-top: 2rem; font-size: 0.9375rem; color: var(--b-ink-500); }

/* ── Responsivo ── */
@media (max-width: 640px) {
  .l-main { padding-block: 2rem 3rem; }
  .l-toc ol { columns: 1; }
  .b-footer-inner { padding: 2.5rem 20px; }
  .b-btn { min-height: 40px; justify-content: center; }
}
@media (max-width: 400px) {
  .b-header-login { display: none !important; }
}
@media (min-width: 640px) {
  .l-wrap { padding-inline: 24px; }
  .b-header-inner { padding-inline: 24px; }
  .b-footer-inner { padding-inline: 24px; }
  .b-header-login { display: block; }
}
@media (min-width: 768px) {
  .b-nav { display: flex; }
  .b-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .b-footer-about { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

@media print {
  .b-header, .b-footer, .l-toc, .l-crosslink { display: none; }
  body { background: #fff; color: #000; }
  .l-wrap { max-width: none; padding: 0; }
}

/* Cabeçalho (cópia da home): 768–1023px mostram 4 links; "Como funciona" só a partir de 1024px */
.b-nav .b-nav-wide { display: none; }
@media (min-width: 1024px) {
  .b-nav .b-nav-wide { display: inline; }
}
