/* Caixly — tokens e componentes compartilhados entre index.html e as páginas
   institucionais (privacidade/termos/exclusao-de-conta/suporte). Extraído do
   que já existia inline em index.html — mesmo visual, sem duplicar CSS por
   página (diferente do site do SouMotorista, que copia o <style> inteiro em
   cada HTML). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── tokens: light (default) ─────────────────────── */
  --bg:          #fbfbf9;
  --surface:     #ffffff;
  --surface-2:   #f2f4f8;
  --border:      #e3e7ee;
  --text:        #161a22;
  --text-muted:  #57616f;
  --text-faint:  #8992a1;
  --accent:      #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #dee9fd;
  --positive:    #16a34a;
  --negative:    #dc2626;
  --on-accent:   #ffffff;

  --font-display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio L", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0b0e14;
    --surface:     #11151d;
    --surface-2:   #171c26;
    --border:      #262d3a;
    --text:        #eef1f5;
    --text-muted:  #9aa4b5;
    --text-faint:  #6b7484;
    --accent:      #5b8def;
    --accent-deep: #3b6fd6;
    --accent-soft: #182742;
    --positive:    #34d399;
    --negative:    #f87171;
    --on-accent:   #08101f;
  }
}
:root[data-theme="dark"] {
  --bg:          #0b0e14;
  --surface:     #11151d;
  --surface-2:   #171c26;
  --border:      #262d3a;
  --text:        #eef1f5;
  --text-muted:  #9aa4b5;
  --text-faint:  #6b7484;
  --accent:      #5b8def;
  --accent-deep: #3b6fd6;
  --accent-soft: #182742;
  --positive:    #34d399;
  --negative:    #f87171;
  --on-accent:   #08101f;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── ICON MARK (logotipo — setas cima/baixo) ─────────── */
.mark .up   { stroke: var(--positive); }
.mark .down { stroke: var(--negative); }

/* ── NAVBAR ───────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.logo svg { display: block; flex-shrink: 0; }
.nav-cta {
  background: var(--accent); color: var(--on-accent); border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: #0c1220; color: #7c869a;
  text-align: center; padding: 32px 24px; font-size: .84rem;
}
footer a { color: #7c869a; text-decoration: none; }
footer a:hover { color: #fff; }
footer strong { color: #fff; font-family: var(--font-display); }
.footer-legal { margin-top: 10px; font-size: .76rem; color: #556077; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ── PÁGINA INTERNA (institucional) ──────────────────────
   Cabeçalho simples + corpo de texto legal/documento. */
.page-hero {
  padding: 56px 24px 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-inner { max-width: 760px; }
.page-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.page-updated { font-size: .86rem; color: var(--text-faint); }

.section-inner { max-width: 1120px; margin: 0 auto; }

.doc { padding: 48px 24px 84px; }
.doc-body { max-width: 680px; margin: 0 auto; }
.doc h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.24rem;
  margin: 40px 0 12px;
}
.doc h2:first-child { margin-top: 0; }
.doc p { font-size: .97rem; line-height: 1.75; color: var(--text-muted); }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0 0 20px; }
.doc li { font-size: .97rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 6px; }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.doc strong { color: var(--text); font-weight: 600; }

.highlight-box {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 8px;
}
.highlight-box p { color: var(--accent-deep); font-size: .92rem; }

/* ── SUPORTE: cards de contato + FAQ ─────────────────── */
.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 32px 0 8px;
}
.contact-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
}
.contact-card .icon-tile {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); margin-bottom: 12px;
}
.contact-card .icon-tile svg { stroke: var(--accent-deep); }
.contact-card strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.contact-card a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .92rem; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { font-size: .82rem; color: var(--text-faint); margin-top: 4px; }

.faq { margin-top: 40px; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: .96rem; color: var(--text);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.2rem; color: var(--text-faint); font-weight: 400; flex-shrink: 0;
  transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-top: 10px; max-width: 60ch; }

@media (max-width: 600px) {
  .page-hero { padding: 40px 20px 28px; }
  .doc { padding: 36px 20px 56px; }
}
