/* ==========================================================================
   Zarpô — Design System (web)
   Tokens espelhados de packages/shared/src/theme/colors.ts
   ========================================================================== */
:root {
  /* Marca */
  --brand: #08B2A9;
  --brand-dark: #06958D;
  --brand-light: #DFF8F6;
  --brand-deep: #06958D;
  --wave-1: #07A199;
  --wave-2: #08B2A9;

  /* Navy (splash passageiro) */
  --navy: #021B3A;
  --navy-2: #06294f;
  --navy-3: #0a335f;

  /* Tinta / superfícies */
  --ink: #1B1B1B;
  --ink-soft: #3A3A3A;
  --muted: #707070;
  --muted-2: #A0A0A0;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --line: #EAEAEA;
  --divider: #EFEFEF;

  /* Semânticas */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --location: #3B82F6;

  /* Forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(2,27,58,.06), 0 1px 3px rgba(2,27,58,.08);
  --shadow-md: 0 8px 24px rgba(2,27,58,.10);
  --shadow-lg: 0 24px 60px rgba(2,27,58,.16);
  --shadow-brand: 0 16px 40px rgba(8,178,169,.30);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Tipografia ---------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-light);
  padding: 7px 14px; border-radius: var(--r-pill);
}

/* Botões -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 15px 28px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 20px 48px rgba(8,178,169,.42); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }

/* Header -------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--ink-soft); font-size: .98rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--brand);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-cta-m { display: none; }

/* Logo ---------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo .logo-mark { height: 34px; width: auto; flex: none; }
.logo .logo-word { height: 23px; width: auto; }
.footer .logo .logo-mark { height: 32px; }
.footer .logo .logo-word { height: 22px; }

/* Reveal animations --------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Section helpers ----------------------------------------------------------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Footer -------------------------------------------------------------------- */
.footer { background: var(--navy); color: #cdd8e6; padding: 72px 0 36px; }
.footer a { color: #cdd8e6; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: #8aa0bb;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .25s, transform .25s; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }

@media (max-width: 880px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav[data-open="true"] .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff; padding: 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] .nav-cta-m {
    display: inline-flex; margin-top: 4px; background: var(--brand); color: #fff;
    padding: 13px 24px; border-radius: var(--r-pill); font-weight: 600;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Páginas legais (Termos / Privacidade)
   ========================================================================== */
.legal-hero { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.legal-hero::after { content: ''; position: absolute; right: -100px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(8,178,169,.35), transparent 65%); }
.legal-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-hero .lead { color: #aebfd4; margin-top: 14px; }
.legal-hero .updated { display: inline-block; margin-top: 22px; font-size: .85rem; color: #cdd8e6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px 16px; border-radius: var(--r-pill); }
.legal-hero .crumb { font-size: .9rem; color: #8aa0bb; margin-bottom: 16px; }
.legal-hero .crumb a:hover { color: #fff; }

.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; padding: clamp(48px, 7vw, 80px) 0; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.legal-toc ul { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--brand-dark); border-color: var(--brand); font-weight: 600; }

.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.5rem; margin: 48px 0 14px; scroll-margin-top: 92px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1rem; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.legal-body a { color: var(--brand-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); }
.legal-note { background: var(--brand-light); border: 1px solid rgba(8,178,169,.25); border-radius: var(--r-md); padding: 18px 20px; margin: 20px 0; }
.legal-note p:last-child { margin-bottom: 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .94rem; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }

@media (max-width: 880px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .legal-toc ul { border-left: 0; grid-auto-flow: row; }
}
