/* focuSound — estilos compartilhados das páginas legais */

:root {
  --bg: #0b0d12;
  --bg-2: #0f1115;
  --surface: #151822;
  --surface-2: #1b1f2b;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --text-2: #a8b0bd;
  --accent: #2f80ed;
  --accent-soft: rgba(47, 128, 237, 0.12);
  --radius: 14px;
  --maxw: 880px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f4f7;
    --stroke: rgba(17, 24, 39, 0.1);
    --text: #1f2937;
    --text-2: #5b6472;
    --accent: #1c62c4;
    --accent-soft: rgba(28, 98, 196, 0.08);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    Cantarell, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ── Cabeçalho ───────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 28px;
}

.logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  display: grid;
  place-items: center;
}

.logo img,
.logo svg { width: 100%; height: 100%; display: block; }

.site-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.site-header .kicker {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ── Navegação entre páginas ─────────────────────────────── */

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem;
  text-decoration: none;
}

.page-nav a:hover { color: var(--text); border-color: var(--accent); }

.page-nav a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ── Conteúdo ────────────────────────────────────────────── */

main.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
}

h2 {
  font-size: 1.1rem;
  margin: 2.2rem 0 0.6rem;
  scroll-margin-top: 20px;
}

h2:first-of-type { margin-top: 0.4rem; }

h3 {
  font-size: 0.98rem;
  margin: 1.4rem 0 0.4rem;
  color: var(--text);
}

p { margin: 0.7rem 0; }

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

ul, ol { padding-left: 1.25rem; margin: 0.6rem 0; }
li { margin-bottom: 0.4rem; }

.muted { color: var(--text-2); }
small { color: var(--text-2); }

/* ── Blocos destacados ───────────────────────────────────── */

.summary {
  border: 1px solid var(--stroke);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0 4px;
}

.summary strong { display: block; margin-bottom: 4px; }

.callout {
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}

/* ── Índice ──────────────────────────────────────────────── */

.toc {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0 8px;
}

.toc p { margin: 0 0 8px; font-weight: 600; font-size: 0.9rem; }

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 28px;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

/* ── Tabelas ─────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; margin: 14px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

th {
  color: var(--text-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* ── Passos numerados ────────────────────────────────────── */

.steps { counter-reset: step; list-style: none; padding-left: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ── Rodapé ──────────────────────────────────────────────── */

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  color: var(--text-2);
  font-size: 0.88rem;
}

.site-footer p { margin: 0.35rem 0; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
