/* ──────────────────────────────────────────────────────────
   Hovedo — Páginas legais (Termos / Privacidade / LGPD)
   Light mode + paleta roxa, alinhado ao hovedo.css principal.
   Tipografia otimizada pra leitura de texto longo.
   ─────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:           #FAFAFA;
  --bg-elevated:  #FFFFFF;
  --bg-subtle:    #F4F4F5;
  --text:         #0A0A0F;
  --text-muted:   #6B7280;
  --text-soft:    #9CA3AF;
  --border:       #E5E7EB;

  --brand:        #6D28D9;
  --brand-hover:  #5B21B6;
  --brand-soft:   #F3E8FF;
  --brand-softer: #FAF5FF;
  --brand-glow:   #A78BFA;

  --success:      #10B981;
  --success-soft: #D1FAE5;
  --warning:      #F59E0B;
  --warning-soft: #FEF3C7;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 999px;

  --shadow-sm:  0 1px 2px rgba(10, 10, 15, 0.04);
  --shadow-md:  0 4px 12px rgba(10, 10, 15, 0.06), 0 1px 3px rgba(10, 10, 15, 0.04);
  --shadow-brand: 0 8px 24px rgba(109, 40, 217, 0.20);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand); color: #fff; }

/* HEADER */
.legal-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.legal-header .logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.legal-header .logo::before {
  content: '';
  width: 28px; height: 28px;
  background: var(--brand);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12c0-4 4-8 9-8s9 4 9 8c0 5-4 8-9 8s-9-3-9-8z'/%3E%3Ccircle cx='9' cy='11' r='1.8' fill='%23fff'/%3E%3Ccircle cx='15' cy='11' r='1.8' fill='%23fff'/%3E%3Cpath d='M11 15l1 1 1-1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.legal-header .logo span { color: var(--brand); }
.legal-header nav { display: flex; gap: 1.4rem; align-items: center; }
.legal-header nav a {
  color: var(--text-muted); font-size: 0.9rem; text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
}
.legal-header nav a:hover { color: var(--brand); }
.legal-header nav a.cta {
  background: var(--brand); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-brand);
  transition: background 0.18s, box-shadow 0.18s;
}
.legal-header nav a.cta:hover { background: var(--brand-hover); }

/* CONTAINER de conteúdo */
.legal-content {
  flex: 1;
  max-width: 820px; width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.legal-meta a {
  color: var(--brand); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.18s;
}
.legal-meta a:hover { color: var(--brand-hover); }

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.legal-content .lead {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.4rem; font-weight: 700; color: var(--text);
  margin: 2.5rem 0 1rem; line-height: 1.3;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.legal-content h2::before {
  content: attr(data-num);
  color: var(--brand); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em;
}
.legal-content h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  margin: 1.5rem 0 0.6rem;
}

.legal-content p {
  font-size: 0.95rem; color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal-content ul, .legal-content ol {
  margin: 0.5rem 0 1.2rem 1.5rem; color: var(--text);
}
.legal-content li {
  font-size: 0.95rem; margin-bottom: 0.5rem;
  line-height: 1.7;
}
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content a {
  color: var(--brand); text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 500;
  transition: border-color 0.18s, color 0.18s;
}
.legal-content a:hover { border-bottom-color: var(--brand); color: var(--brand-hover); }

/* Card de destaque - aviso (roxo) */
.legal-note {
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.legal-note strong { display: block; color: var(--brand); margin-bottom: 0.4rem; font-weight: 700; }
.legal-note p { margin: 0; font-size: 0.92rem; color: var(--text); }

/* Card de aviso - âmbar */
.legal-warning {
  background: var(--warning-soft);
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.legal-warning strong { display: block; color: #92400E; margin-bottom: 0.4rem; font-weight: 700; }
.legal-warning p { margin: 0; font-size: 0.92rem; color: var(--text); }

/* FOOTER */
.legal-footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  background: var(--bg-elevated);
}
.legal-footer .logo {
  font-size: 1.15rem; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
}
.legal-footer .logo span { color: var(--brand); }
.legal-footer .footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.legal-footer .footer-links a {
  color: var(--text-muted); font-size: 0.85rem; text-decoration: none;
  transition: color 0.18s;
}
.legal-footer .footer-links a:hover { color: var(--brand); }
.legal-footer .footer-copy { color: var(--text-muted); font-size: 0.82rem; }

@media (max-width: 768px) {
  .legal-header { padding: 1rem 1.2rem; }
  .legal-header nav { gap: 1rem; }
  .legal-header nav a:not(.cta) { display: none; }
  .legal-content { padding: 2rem 1.2rem 3rem; }
  .legal-footer { flex-direction: column; text-align: center; padding: 1.5rem 1.2rem; }
}
