/* ==========================================================================
   Ridee — Páginas legais (área Cliente / passageiro)
   Standalone: não depende de nenhum outro CSS do app.
   Paleta clara, tipografia Inter, mobile-first.
   ========================================================================== */

:root {
  --color-brand: #F9D515;      /* amarelo Ridee (primário) */
  --color-brand-2: #FFB800;    /* amarelo escuro / hover */
  --color-blue: #1D4ED8;       /* azul de apoio / links */
  --color-blue-dark: #1E3A8A;
  --color-text: #0B0F19;       /* texto principal */
  --color-muted: #4B5563;      /* texto secundário */
  --color-faint: #6B7280;      /* texto terciário */
  --surface-0: #FFFFFF;        /* fundo de cards */
  --surface-1: #F3F4F6;        /* fundo da página */
  --surface-2: #E5E7EB;        /* bordas suaves */
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(11, 15, 25, .06), 0 1px 3px rgba(11, 15, 25, .04);
  --shadow-md: 0 4px 16px rgba(11, 15, 25, .08);
  --shadow-lg: 0 12px 40px rgba(11, 15, 25, .10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 860px;
}

/* -------------------------------------------------------------------------- */
/* Reset enxuto                                                               */
/* -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

/* compensa o header fixo ao pular para uma âncora */
:target { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--surface-1);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------- */
/* Top bar fixa (voltar)                                                      */
/* -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease, transform .15s ease;
}
.back-btn:hover { background: var(--surface-2); text-decoration: none; transform: translateX(-1px); }
.back-btn svg { width: 16px; height: 16px; }
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-text);
}
.topbar__brand img { height: 24px; width: auto; }

/* -------------------------------------------------------------------------- */
/* Container                                                                  */
/* -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero {
  margin: 24px 0 28px;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 400px at 100% -20%, rgba(29, 78, 216, .10), transparent 60%),
    linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-2) 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero__logo img { height: 38px; width: auto; }
.hero__wordmark {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--color-text);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--color-text);
  font-weight: 900;
}
.hero p {
  margin: 0;
  max-width: 56ch;
  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
}
.hero__meta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(11, 15, 25, .9);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Sumário / índice                                                           */
/* -------------------------------------------------------------------------- */
.toc {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.toc h2 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-faint);
  font-weight: 800;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  transition: background .15s ease;
}
.toc a:hover { background: var(--surface-1); text-decoration: none; }
.toc a::before {
  content: counter(toc);
  flex: 0 0 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-brand);
  color: var(--color-text);
  font-weight: 800;
  font-size: 13px;
}

/* -------------------------------------------------------------------------- */
/* Seções                                                                     */
/* -------------------------------------------------------------------------- */
.section {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section__num {
  flex: 0 0 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-2));
  color: var(--color-text);
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.section h2 {
  margin: 0;
  font-size: clamp(19px, 3.6vw, 23px);
  letter-spacing: -.015em;
  font-weight: 800;
  color: var(--color-text);
}
.section h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
}
.section p { margin: 0 0 12px; color: #1f2937; }
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol { margin: 0 0 12px; padding-left: 22px; }
.section li { margin: 6px 0; color: #1f2937; }
.section strong { color: var(--color-text); }
.muted { color: var(--color-muted); }

.lead {
  font-size: 16.5px;
  color: var(--color-muted);
}

/* -------------------------------------------------------------------------- */
/* Componentes auxiliares                                                     */
/* -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-muted);
}

.callout {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--color-brand);
}
.callout--blue {
  background: #EFF4FF;
  border-color: #C7D7FE;
  border-left-color: var(--color-blue);
}
.callout p { margin: 0; }
.callout strong { color: var(--color-text); }

/* lista de definição (chave: valor) para o controlador */
.kv {
  margin: 8px 0 4px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
}
.kv dt { font-weight: 700; color: var(--color-text); }
.kv dd { margin: 0; color: #1f2937; }

/* cartões de terceiros / parceiros */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--surface-0);
}
.card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card p { margin: 0; font-size: 14px; color: var(--color-muted); }

/* tabela de finalidade x base legal */
.table-wrap { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
table.legal {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
table.legal th,
table.legal td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.legal th {
  background: var(--surface-1);
  font-weight: 800;
  color: var(--color-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
table.legal tr:last-child td { border-bottom: 0; }

/* botão de contato destacado */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, opacity .15s ease;
}
.contact-btn:hover { text-decoration: none; transform: translateY(-1px); opacity: .94; }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-faint);
}

/* -------------------------------------------------------------------------- */
/* Rodapé                                                                     */
/* -------------------------------------------------------------------------- */
.footer {
  max-width: var(--maxw);
  margin: 8px auto 0;
  padding: 28px 20px 48px;
  border-top: 1px solid var(--border);
  color: var(--color-faint);
  font-size: 14px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 10px;
}
.footer__brand img { height: 26px; width: auto; }
.footer p { margin: 6px 0; }
.footer__links {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer__links a { font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* Responsivo                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .toc ol { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px; }
  .section { padding: 22px 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
