/* Termos e Privacidade: mesma cara da landing e do painel (Poppins, azul do app, destaque âmbar). */
:root {
  --text: #111827;
  --muted: #4B5563;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --accent: #FBBF24;
  --line: #E5E7EB;
  --bg: #F3F5FB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Poppins", ui-sans-serif, system-ui, sans-serif;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* Barra de topo branca, como a da landing */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .bar {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.95rem; font-weight: 500; }
.topbar nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.topbar nav a:hover { color: var(--primary); }

/* Faixa azul do título */
.title-band {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 55%, #2563EB 100%);
  color: #fff;
}
.title-band .inner { max-width: 800px; margin: 0 auto; padding: 40px 16px 72px; }
.title-band .bar-accent { display: block; width: 56px; height: 5px; border-radius: 999px; background: var(--accent); margin-bottom: 16px; }
.title-band h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.title-band .meta { color: #DBEAFE; font-size: 0.9rem; margin: 0; }

main, footer { max-width: 800px; margin: 0 auto; padding: 0 16px; }

main {
  margin-top: -44px;
  margin-bottom: 40px;
  padding: 36px clamp(16px, 5vw, 48px) 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px -30px rgb(30 58 138 / 0.35);
}
@media (max-width: 640px) {
  main { border-radius: 16px; margin-left: 12px; margin-right: 12px; }
}

h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
  scroll-margin-top: 16px;
}
h2:first-of-type { margin-top: 24px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
ul { padding-left: 20px; }
li + li { margin-top: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #EFF4FF; color: #1E3A8A; padding: 1px 6px; border-radius: 6px; font-size: 0.85em; }

.note {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  background: #FFFBEB;
  color: #92400E;
}
.note strong { color: #92400E; }

footer { padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 10px; }
footer button { font: inherit; color: var(--primary); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.disclosure { font-size: 0.8rem; line-height: 1.6; color: var(--muted); }

/* Aviso de cookies (criado pelo app.js) */
.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -16px rgb(15 23 42 / 0.35);
}
.cookie-banner.hidden { display: none; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cookie-actions button {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font: 600 0.95rem "Poppins", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #1F2937;
}
.cookie-actions button[data-cookie-choice="all"] { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (min-width: 768px) {
  .cookie-banner { flex-direction: row; align-items: center; padding: 20px 24px; }
  .cookie-actions { flex-direction: row; }
}
