:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --text: #1c2430;
  --muted: #5a6573;
  --line: #dde2e8;
  --accent: #1f4e79;
  --accent-text: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --bg-soft: #18202a;
    --text: #e6eaef;
    --muted: #a3adb9;
    --line: #2a3440;
    --accent: #7fb0dd;
    --accent-text: #0b1118;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow { max-width: 46rem; }

/* Cabeçalho */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); }

/* Seções */
.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 40rem;
}
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0;
}

section { padding: 2.5rem 0; }
section.soft { background: var(--bg-soft); }

h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem;
}
.card p { margin: 0; color: var(--muted); }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.65rem 1.1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
}

/* Política */
.doc { padding-top: 3rem; padding-bottom: 3rem; }
.doc h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0 0 0.5rem; }
.doc h2 { margin-top: 2.25rem; font-size: 1.25rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
code { font-size: 0.92em; overflow-wrap: anywhere; }

/* Rodapé */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }
