/* Persona Fit — folha de estilo compartilhada das páginas legais.
   Espelha os tokens de design do hotsite (tailwind.config.js / theme.ts). */

:root {
  --bg: #07080b;
  --bg-deep: #040507;
  --bg-elevated: #0f1115;
  --surface: #12141a;
  --surface-raised: #1a1d25;
  --border: #1f232b;
  --border-strong: #2b313c;
  --text: #f4f5f7;
  --text-body: #d5d8e0;
  --text-dim: #a1a6b2;
  --text-muted: #6b7180;
  --accent: #39ff14;
  --accent-soft: #7bff5c;
  --accent-deep: #1db954;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --violet-deep: #6d28d9;
}

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

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

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent);
}

/* ---------- Top bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(7, 8, 11, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--text);
}
.nav__brand img {
  width: 28px;
  height: 28px;
}
.nav__back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.nav__back:hover {
  color: var(--accent);
}

/* ---------- Header band ---------- */
.hero {
  position: relative;
  padding: 4rem 1.25rem 3rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(57, 255, 20, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.18) 0%, transparent 52%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}
.hero__meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero__meta strong {
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* Aviso em destaque */
.callout {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.06), rgba(18, 20, 26, 0.4));
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}
.callout--violet {
  border-left-color: var(--violet);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(18, 20, 26, 0.4));
}
.callout strong {
  color: var(--text);
}

/* Índice */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
}
@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
  }
}
.toc li {
  counter-increment: toc;
  font-size: 0.92rem;
}
.toc li a {
  color: var(--text-dim);
}
.toc li a::before {
  content: counter(toc) '. ';
  color: var(--accent-deep);
  font-weight: 700;
}
.toc li a:hover {
  color: var(--accent);
}

/* Seções */
section {
  scroll-margin-top: 80px;
  margin-bottom: 2.5rem;
}
h2.sec {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
h2.sec .num {
  color: var(--accent);
  font-weight: 800;
  margin-right: 0.5rem;
}
h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}
p {
  margin-bottom: 1rem;
}
ul,
ol.list {
  margin: 0 0 1rem 1.3rem;
}
li {
  margin-bottom: 0.5rem;
}
strong {
  color: var(--text);
  font-weight: 600;
}

/* Tabelas */
.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) td {
  background: rgba(18, 20, 26, 0.5);
}

/* Campo a preencher antes da publicação */
.fill {
  color: var(--violet-soft);
  font-weight: 600;
  border-bottom: 1px dotted var(--violet);
  white-space: nowrap;
}

/* Rodapé */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}
.foot__links a {
  color: var(--text-dim);
  font-weight: 600;
}
.foot__links a:hover {
  color: var(--accent);
}
.foot a {
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
