/* ============================================================
   PÁGINAS LEGAIS — JULiA (Termos, Privacidade, Cookies)
   ============================================================ */
:root {
  --j-cyan:    #00d4ff;
  --j-blue:    #3d4de0;
  --j-purple:  #8b2fc9;
  --j-magenta: #c920a0;
  --j-grad:    linear-gradient(135deg, #00d4ff 0%, #3d4de0 40%, #8b2fc9 75%, #c920a0 100%);
  --j-dark:    #080a1a;
  --j-dark2:   #0d0f25;
}

.legal-body { background: var(--j-dark); }

/* ---- NAVBAR override (dark, julia) ---- */
.legal-body #navbar { background: rgba(8,10,26,0.92); border-bottom: 1px solid rgba(0,212,255,0.1); }
.legal-body #navbar.scrolled { background: rgba(4,5,14,0.98); }

/* ---- HERO ---- */
.legal-hero {
  padding: 150px 0 60px;
  background: var(--j-dark);
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 80% 20%, rgba(61,77,224,0.14) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,212,255,0.08) 0%, transparent 55%);
}
.legal-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(61,77,224,0.14); border: 1px solid rgba(61,77,224,0.3);
  color: var(--j-cyan); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 16px; border-radius: 100px; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.legal-hero h1 {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.legal-hero h1 span {
  background: var(--j-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.legal-updated {
  color: rgba(255,255,255,0.4); font-size: 13px; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
}
.legal-updated strong { color: rgba(255,255,255,0.6); }

/* ---- LAYOUT: sidebar + content ---- */
.legal-layout {
  background: var(--j-dark2);
  padding: 64px 0 100px;
}
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }

/* Sidebar TOC */
.legal-toc {
  position: sticky; top: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(61,77,224,0.18);
  border-radius: 16px; padding: 22px 20px;
}
.legal-toc h4 {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: block; padding: 7px 10px; border-radius: 7px;
  color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.4;
  transition: all 0.18s ease; border-left: 2px solid transparent;
}
.legal-toc a:hover { color: #fff; background: rgba(61,77,224,0.1); }
.legal-toc a.active { color: var(--j-cyan); background: rgba(0,212,255,0.06); border-left-color: var(--j-cyan); }

.legal-toc-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 16px 0; }
.legal-toc-other a { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.4); padding: 6px 10px; }
.legal-toc-other a:hover { color: var(--j-cyan); }

/* Content */
.legal-content {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(61,77,224,0.15);
  border-radius: 20px; padding: 48px 52px;
}
.legal-content h2 {
  font-family: var(--font-head); font-size: 21px; font-weight: 700; color: #fff;
  margin: 38px 0 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06);
  scroll-margin-top: 100px;
}
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p {
  color: rgba(255,255,255,0.62); font-size: 14.5px; line-height: 1.85; margin-bottom: 14px;
}
.legal-content ul {
  list-style: none; margin: 14px 0; display: flex; flex-direction: column; gap: 10px;
}
.legal-content li {
  display: flex; gap: 10px; color: rgba(255,255,255,0.6); font-size: 14.5px; line-height: 1.7;
  padding-left: 4px;
}
.legal-content li::before {
  content: '—'; color: var(--j-cyan); flex-shrink: 0; font-weight: 700;
}
.legal-content strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.legal-content a.inline-link {
  color: var(--j-cyan); border-bottom: 1px solid rgba(0,212,255,0.3);
}
.legal-content a.inline-link:hover { border-color: var(--j-cyan); }

.legal-intro {
  color: rgba(255,255,255,0.68); font-size: 15px; line-height: 1.8;
  padding-bottom: 28px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Highlight box for important notes */
.legal-note {
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px; padding: 18px 20px; margin: 18px 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.legal-note .icon { font-size: 18px; flex-shrink: 0; }
.legal-note p { color: rgba(255,255,255,0.65); font-size: 13.5px; margin: 0; }

/* Cross-links at bottom */
.legal-crosslinks {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.legal-crosslinks a {
  display: flex; align-items: center; gap: 8px;
  background: rgba(61,77,224,0.08); border: 1px solid rgba(61,77,224,0.25);
  color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; transition: all 0.2s;
}
.legal-crosslinks a:hover { background: rgba(61,77,224,0.15); border-color: rgba(61,77,224,0.4); color: #fff; }

/* Contact box */
.legal-contact-box {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(61,77,224,0.1), rgba(139,47,201,0.08));
  border: 1px solid rgba(61,77,224,0.25); border-radius: 16px; padding: 26px 28px;
}
.legal-contact-box h4 { font-family: var(--font-head); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.legal-contact-box p { color: rgba(255,255,255,0.55); font-size: 13.5px; margin-bottom: 14px; }
.legal-contact-box a.email-link {
  color: var(--j-cyan); font-weight: 600; font-size: 14px;
}

/* Mobile TOC toggle */
.legal-toc-mobile-btn { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; margin-bottom: 8px; }
  .legal-content { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .legal-content { padding: 26px 18px; border-radius: 14px; }
  .legal-content h2 { font-size: 18px; }
}
