/* ==========================================================
   Saúde Legal — estilos das páginas jurídicas
   Privacidade, Termos de Uso e Exclusão de Dados.

   Blocos extraídos do design system da index.html:
   tokens, botões, header, footer, documento legal e
   botão flutuante do WhatsApp.
   ========================================================== */

  :root {
    --navy-900: #0B2240;
    --navy-800: #0E2A4A;
    --navy-700: #163A63;
    --navy-50:  #EDF2F8;

    --teal-600: #109289;
    --teal-500: #14A89C;
    --teal-400: #34BFB3;
    --teal-50:  #E6F6F4;

    --whats-500: #25D366;
    --whats-600: #1FB855;
    --whats-700: #169A45;

    --ink-900: #0E2A4A;
    --ink-700: #2E3F5C;
    --ink-500: #5B6B82;
    --ink-400: #8593A8;

    --bg:       #FFFFFF;
    --bg-soft:  #F4F7FB;
    --bg-mute:  #EEF2F8;
    --border:   #E2E8F1;
    --border-strong: #CFD8E6;

    --warn-bg:  #FFF1ED;
    --warn-fg:  #C7351C;
    --warn-bd:  #FFD7CB;

    --success-bg: #E6F6EE;
    --success-fg: #0E7A3D;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(14,42,74,.06), 0 1px 3px rgba(14,42,74,.04);
    --shadow:    0 6px 24px -8px rgba(14,42,74,.18), 0 2px 6px rgba(14,42,74,.06);
    --shadow-lg: 0 30px 60px -20px rgba(14,42,74,.25), 0 12px 24px -10px rgba(14,42,74,.12);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  section[id], main[id] { scroll-margin-top: 92px; } /* compensa o header fixo */
  body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink-900);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
    font-size: 16px;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
    line-height: 1;
  }
  .btn-whats {
    background: var(--whats-500);
    color: white;
    box-shadow: 0 10px 24px -10px rgba(37,211,102,.55), 0 4px 10px -4px rgba(37,211,102,.5);
  }
  .btn-whats:hover { background: var(--whats-600); transform: translateY(-1px); }
  .btn-whats:active { transform: translateY(0); }
  .btn-whats.lg { padding: 18px 28px; font-size: 17px; gap: 12px; }
  .btn-whats .ic { width: 20px; height: 20px; }
  .btn-whats.lg .ic { width: 22px; height: 22px; }

  .btn-ghost {
    color: var(--navy-800);
    background: transparent;
    padding: 12px 16px;
  }
  .btn-ghost:hover { background: var(--bg-soft); }

  .btn-outline {
    color: var(--navy-800);
    background: white;
    border: 1.5px solid var(--border-strong);
    padding: 13px 20px;
  }
  .btn-outline:hover { border-color: var(--navy-800); }

  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .header-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 24px;
  }
  .brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 800; letter-spacing: -0.01em;
  }
  .brand-mark {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .brand-text {
    font-size: 19px;
    line-height: 1;
  }
  .brand-text .legal { color: var(--teal-500); }
  .nav {
    display: flex; align-items: center; gap: 6px;
  }
  .nav a {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--ink-700);
    font-size: 15px;
  }
  .nav a:hover { background: var(--bg-soft); color: var(--navy-800); }

  .header-cta { display: inline-flex; align-items: center; gap: 8px; }

  .menu-toggle { display: none; }

  @media (max-width: 900px) {
    .nav { display: none; }
    .header-cta .btn-whats span.txt { display: none; }
    .header-cta .btn-whats { padding: 12px 14px; }
  }


  /* ---------- generic section ---------- */
  section.block { padding: 96px 0; }
  section.block.tight { padding: 72px 0; }
  .section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
  }
  .section-head.left { text-align: left; margin-left: 0; }
  .section-kicker {
    text-transform: uppercase; letter-spacing: .14em;
    font-size: 12px; font-weight: 700;
    color: var(--teal-600);
    margin-bottom: 14px;
  }
  .section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--navy-900);
    margin: 0 0 14px;
    text-wrap: balance;
  }
  .section-sub {
    color: var(--ink-500);
    font-size: 17px;
    margin: 0;
    text-wrap: pretty;
  }


  /* ---------- footer ---------- */
  footer.site-footer {
    background: #08182C;
    color: rgba(255,255,255,.7);
    padding: 64px 0 28px;
    font-size: 14px;
  }
  .foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .foot-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
  }
  .foot-brand-text { color: white; font-weight: 800; font-size: 18px; }
  .foot-brand-text .legal { color: var(--teal-400); }
  .foot-about { max-width: 320px; line-height: 1.6; }
  .foot-col h5 {
    color: white; font-size: 13px; text-transform: uppercase;
    letter-spacing: .12em; margin: 0 0 14px; font-weight: 700;
  }
  .foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
  .foot-col a:hover { color: white; }
  .legal-note {
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius);
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.6;
  }
  .foot-bottom {
    margin-top: 28px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    color: rgba(255,255,255,.5);
    font-size: 13px;
  }
  .foot-bottom a:hover { color: white; }

  @media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .foot-grid { grid-template-columns: 1fr; }
  }

  /* ---------- documento legal (privacidade) ---------- */
  .legal-doc { background: var(--bg-soft); }
  .doc-card {
    max-width: 880px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 48px 52px;
  }
  .doc-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .doc-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-mute);
    border: 1px solid var(--border);
    color: var(--ink-500);
    font-size: 12.5px;
    font-weight: 600;
  }
  .doc-chip svg { color: var(--teal-500); flex: none; }
  .doc-intro {
    color: var(--ink-500);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 24px 0 0;
  }
  .doc-toc {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 24px 0 8px;
  }
  .doc-toc a {
    font-size: 13px; font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--navy-50);
    color: var(--navy-800);
    transition: background .2s ease, color .2s ease;
  }
  .doc-toc a:hover { background: var(--teal-50); color: var(--teal-600); }

  .doc-body h3 {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 17.5px;
    color: var(--navy-900);
    letter-spacing: -0.01em;
    margin: 40px 0 10px;
    scroll-margin-top: 100px;
  }
  .doc-body h3 .num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    color: var(--teal-600);
    flex: none;
  }
  .doc-body h4 {
    font-size: 14.5px;
    color: var(--navy-800);
    margin: 22px 0 6px;
  }
  .doc-body p { color: var(--ink-500); font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
  .doc-body ul {
    list-style: none;
    padding: 0; margin: 10px 0 14px;
    display: flex; flex-direction: column; gap: 9px;
  }
  .doc-body ul li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-500);
    font-size: 15px;
    line-height: 1.65;
  }
  .doc-body ul li::before {
    content: "";
    position: absolute; left: 4px; top: 9px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal-400);
  }
  .doc-body strong { color: var(--ink-700); }
  /* cláusulas numeradas automaticamente (1.1, 1.2, …) */
  .doc-body { counter-reset: sec; }
  .doc-body h3 { counter-increment: sec; counter-reset: clause; }
  .doc-body ol.clauses {
    list-style: none;
    padding: 0; margin: 12px 0 14px;
    display: flex; flex-direction: column; gap: 11px;
  }
  .doc-body ol.clauses > li {
    counter-increment: clause;
    position: relative;
    padding-left: 44px;
    color: var(--ink-500);
    font-size: 15px;
    line-height: 1.7;
  }
  .doc-body ol.clauses > li::before {
    content: counter(sec) "." counter(clause) ".";
    position: absolute; left: 0; top: 1px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px; font-weight: 700;
    color: var(--teal-600);
    line-height: 1.95;
  }
  .doc-body ol.clauses > li ul { margin: 8px 0 0; }
  .doc-body ol.clauses > li:last-child { margin-bottom: 0; }
  .doc-body a.mail { color: var(--teal-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .doc-callout {
    margin: 18px 0 0;
    padding: 18px 20px;
    background: #F3FBFA;
    border: 1px solid #C8EEE8;
    border-radius: var(--radius);
  }
  .doc-callout p { margin: 0; color: var(--ink-700); font-size: 14.5px; }
  .doc-callout p + p { margin-top: 8px; }
  .doc-note {
    margin: 18px 0 0;
    padding: 16px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink-500);
    font-size: 13.5px;
    line-height: 1.6;
  }
  .doc-back {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    font-size: 13.5px;
    color: var(--ink-400);
  }
  .doc-back a { color: var(--teal-600); font-weight: 600; }

  @media (max-width: 640px) {
    .doc-card { padding: 32px 22px; }
    .doc-body h3 { font-size: 16.5px; }
  }

  /* ---------- floating whatsapp ---------- */
  .float-whats {
    position: fixed; right: 22px; bottom: 22px;
    z-index: 40;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--whats-500);
    box-shadow: 0 18px 36px -10px rgba(37,211,102,.55), 0 6px 12px -4px rgba(0,0,0,.18);
    display: inline-flex; align-items: center; justify-content: center;
    color: white;
    transition: transform .2s ease, background .2s ease;
  }
  .float-whats:hover { background: var(--whats-600); transform: scale(1.04); }
  .float-whats::after {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%;
    background: rgba(37,211,102,.4);
    z-index: -1;
    animation: ring 2s infinite;
  }
  @keyframes ring {
    0%   { transform: scale(.9); opacity: .7; }
    100% { transform: scale(1.35); opacity: 0; }
  }

  /* utility */
  .sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
