/*
  Layout base das páginas internas (/privacidade, /sobre).
  Cópia dos tokens, header, footer e botão de WhatsApp da Home (index.html, CSS inline),
  mais os estilos de texto corrido. Ao mudar o visual da Home, replicar aqui.
*/
:root {
  --giles-cyan: #00C2FF;
  --giles-blue: #0047E0;
  --giles-navy: #040A1A;
  --white: #FCFCFC;
  --gray-50: #F7F8FA;
  --gray-100: #E9ECF1;
  --gray-300: #C7CDD9;
  --gray-600: #5B6472;
  --gray-900: #1A1F29;

  --bg: var(--white);
  --bg-soft: var(--gray-50);
  --text: var(--gray-900);
  --text-soft: var(--gray-600);
  --border: var(--gray-100);
  --link: var(--giles-blue);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--giles-navy);
    --bg-soft: #0A1226;
    --text: var(--white);
    --text-soft: #A9B3C4;
    --border: #182036;
    --link: var(--giles-cyan);
  }
}
:root[data-theme="dark"] {
  --bg: var(--giles-navy);
  --bg-soft: #0A1226;
  --text: var(--white);
  --text-soft: #A9B3C4;
  --border: #182036;
  --link: var(--giles-cyan);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- header (igual à Home) ---- */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
nav .nav-links { display: flex; gap: 32px; }
nav .nav-links a { text-decoration: none; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--giles-cyan), var(--giles-blue));
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

/* ---- conteúdo de texto (política, sobre) ---- */
.pagina-topo { background: var(--bg-soft); padding: 64px 0 40px; }
.pagina-topo h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pagina-topo p { color: var(--text-soft); margin: 0; font-size: 15px; }
.conteudo { max-width: 760px; padding: 48px 24px 88px; }
.conteudo h2 { font-size: 22px; font-weight: 800; margin: 44px 0 12px; letter-spacing: -0.01em; }
.conteudo h2:first-child { margin-top: 0; }
.conteudo h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.conteudo p, .conteudo li { font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.conteudo p { margin: 0 0 14px; }
.conteudo ul { margin: 0 0 14px; padding-left: 22px; }
.conteudo li { margin-bottom: 6px; }
.conteudo strong { color: var(--text); }
.conteudo a { color: var(--link); }
.conteudo .cartao {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 18px;
  background: var(--bg-soft);
}
.conteudo .cartao p:last-child { margin-bottom: 0; }
.tabela-rolagem { overflow-x: auto; margin: 0 0 18px; }
.conteudo table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.conteudo th, .conteudo td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  color: var(--text-soft);
}
.conteudo th { color: var(--text); font-weight: 700; background: var(--bg-soft); }
.conteudo .acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---- footer (igual à Home) ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: 14px;
  color: var(--text-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h5 { color: var(--text); font-size: 14px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-grid a { text-decoration: none; color: var(--text-soft); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom-links a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom-links a:hover { color: var(--text); }

/* ---- whatsapp fab (igual à Home) ---- */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
  z-index: 30;
}
.wa-fab svg { width: 26px; height: 26px; }

/* ---- CTA fixo no rodapé da tela (só mobile; igual à Home, controlado por /js/cta-fixo.js) ---- */
:root { --cta-fixo-altura: 72px; }
.cta-fixo { display: none; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
  .pagina-topo { padding: 44px 0 28px; }
  .pagina-topo h1 { font-size: 30px; }
  .conteudo { padding: 36px 24px 72px; }
  .wa-fab { bottom: 16px; right: 16px; transition: bottom .25s ease; }

  .cta-fixo {
    display: flex;
    align-items: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 25;
    min-height: var(--cta-fixo-altura);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .cta-fixo.is-visivel { transform: none; visibility: visible; }
  .cta-fixo .btn { width: 100%; }
  /* CTA fixo visível → WhatsApp sobe para ficar acima dele */
  body.cta-fixo-visivel .wa-fab { bottom: calc(var(--cta-fixo-altura) + env(safe-area-inset-bottom) + 12px); }
  /* Banner de cookies aberto → CTA fixo e WhatsApp somem (regra em /css/consentimento.css) */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sem animação de entrada/saída do CTA fixo e do WhatsApp */
  .cta-fixo, .wa-fab { transition: none !important; }
}
