/* Shared styles for the public pages (home, privacidade, termos). The
   consent page in autorizar/ keeps its own inline styles on purpose: it is
   served with no-store and must not depend on another file. */
:root {
  --bg: #FFF6E9;
  --surface: #FFFFFF;
  --text: #2A2A2A;
  --muted: #5F5A52;
  --brand: #E0702A;
  --accent: #FF8C42;
  --brown: #4B2E1E;
  --border: #EFE6D8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ── Header ───────────────────────────────────────────── */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header img { height: 44px; width: auto; display: block; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.site-header nav a { color: var(--brown); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* ── Home ─────────────────────────────────────────────── */
.hero { text-align: center; padding: 24px 0 40px; }
.hero img { width: min(340px, 80vw); height: auto; }
.hero h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 16px 0 10px; letter-spacing: -0.5px; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 auto; max-width: 520px; }
.badge {
  display: inline-block; margin-top: 24px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding-bottom: 40px; }
.feature { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.feature .icon { font-size: 30px; line-height: 1; }
.feature h2 { font-size: 18px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.parents { background: var(--surface); border-radius: 24px; padding: 28px; margin-bottom: 48px; display: flex; gap: 20px; align-items: center; }
.parents img { width: 96px; height: 96px; flex: none; }
.parents h2 { margin: 0 0 8px; font-size: 22px; }
.parents ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* ── Legal pages ──────────────────────────────────────── */
.doc { background: var(--surface); border-radius: 24px; padding: 32px 28px; margin: 8px 0 48px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.doc h1 { font-size: clamp(26px, 5vw, 32px); line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc .summary { background: var(--bg); border-radius: 16px; padding: 18px 20px; margin: 0 0 28px; }
.doc .summary h2 { margin-top: 0; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc h3 { font-size: 16px; margin: 20px 0 4px; }
.doc p, .doc li { font-size: 16px; color: #3C3832; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--brown); }
.table-scroll { overflow-x: auto; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer a { color: var(--brown); margin: 0 8px; }

@media (max-width: 560px) {
  .parents { flex-direction: column; text-align: center; }
  .parents ul { text-align: left; }
  .doc { padding: 24px 18px; }
}
