/* =========================================================
   7SD — Estilos da Página de Política de Privacidade & LGPD
   Design System: Dark Mode, Glassmorphism & Neon Purple
   ========================================================= */

:root {
  --bg: #09050f;
  --bg2: #130a21;
  --bg-card: rgba(26, 14, 46, 0.55);
  --bg-card-hover: rgba(35, 16, 58, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(184, 107, 255, 0.3);
  --p: #7b2eff;
  --s: #9a49ff;
  --h: #b86bff;
  --text: #ffffff;
  --muted: #c9c6d5;
  --muted-dark: #81798e;
  --success: #10b981;
  --font-main: 'Plus Jakarta Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients & Glows */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.aurora-bg {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.aurora-1 {
  width: 550px;
  height: 400px;
  top: -120px;
  left: 20%;
  background: radial-gradient(circle, rgba(123, 46, 255, 0.22), transparent 70%);
}

.aurora-2 {
  width: 480px;
  height: 380px;
  top: 50%;
  right: -100px;
  background: radial-gradient(circle, rgba(184, 107, 255, 0.12), transparent 70%);
}

.aurora-3 {
  width: 600px;
  height: 450px;
  bottom: 5%;
  left: -150px;
  background: radial-gradient(circle, rgba(123, 46, 255, 0.14), transparent 70%);
}

/* Top Navigation */
.legal-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 5, 15, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.legal-nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.legal-back-btn:hover {
  color: #ffffff;
  background: rgba(184, 107, 255, 0.15);
  border-color: var(--border-glow);
  transform: translateX(-3px);
}

.legal-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contact-dpo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p), var(--s));
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(123, 46, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-contact-dpo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(154, 73, 255, 0.4);
}

/* Hero Section */
.legal-hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 24px 44px;
  text-align: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184, 107, 255, 0.1);
  border: 1px solid rgba(184, 107, 255, 0.25);
  color: var(--h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h);
  box-shadow: 0 0 8px var(--h);
}

.legal-hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 auto 20px;
  max-width: 900px;
  font-weight: 800;
}

.legal-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff, var(--h));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-hero-lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Feature Cards Grid (Highlights) */
.legal-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 20px;
  text-align: left;
}

.highlight-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(123, 46, 255, 0.12);
}

.highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(184, 107, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h);
  flex-shrink: 0;
}

.highlight-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
}

.highlight-info p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Main Container Layout */
.legal-container {
  max-width: 1220px;
  margin: 20px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: start;
}

/* Sticky Sidebar / Table of Contents */
.legal-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-header h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--h);
  margin: 0 0 12px;
  font-weight: 700;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 10px 36px;
  font-size: 12px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  border-color: var(--h);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(184, 107, 255, 0.2);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-dark);
  pointer-events: none;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  padding-right: 4px;
}

.toc-nav::-webkit-scrollbar {
  width: 4px;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-link .toc-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-dark);
  min-width: 18px;
}

.toc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.toc-link.active {
  color: #fff;
  background: rgba(184, 107, 255, 0.12);
  border-left-color: var(--h);
}

.toc-link.active .toc-num {
  color: var(--h);
}

/* Quick DPO Widget in Sidebar */
.sidebar-dpo-card {
  margin-top: 10px;
  padding: 14px;
  background: rgba(123, 46, 255, 0.08);
  border: 1px solid rgba(184, 107, 255, 0.2);
  border-radius: 12px;
  font-size: 12px;
}

.sidebar-dpo-card strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.sidebar-dpo-card p {
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

.sidebar-dpo-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--h);
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
}

.sidebar-dpo-card a:hover {
  text-decoration: underline;
}

/* Main Content Area */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  scroll-margin-top: 100px;
  transition: border-color 0.3s ease;
}

.legal-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(184, 107, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h);
  flex-shrink: 0;
}

.section-title-wrap h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
}

.section-title-wrap .section-idx {
  font-size: 12px;
  color: var(--h);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.legal-section p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #ffffff;
}

.legal-section ul, 
.legal-section ol {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  padding-left: 22px;
  margin: 14px 0 20px;
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-section li strong {
  color: #f1edfa;
}

/* Callout Box / Alert within Sections */
.callout-box {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(123, 46, 255, 0.08);
  border-left: 4px solid var(--h);
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-box svg {
  color: var(--h);
  flex-shrink: 0;
  margin-top: 3px;
}

.callout-box p {
  margin: 0;
  font-size: 13.5px;
  color: #e4ddf2;
}

.callout-box strong {
  color: #ffffff;
}

/* Interactive Table for Data Categories */
.data-table-wrapper {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(9, 5, 15, 0.4);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.legal-badge-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(184, 107, 255, 0.15);
  color: var(--h);
  border: 1px solid rgba(184, 107, 255, 0.25);
}

/* Cards Grid for Rights (LGPD Art. 18) */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 16px;
}

.right-item-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.right-item-card:hover {
  background: rgba(184, 107, 255, 0.07);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.right-item-card h4 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-item-card h4 svg {
  color: var(--h);
}

.right-item-card p {
  font-size: 12.5px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Principles Grid (LGPD Art. 6) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.principle-box {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.principle-box b {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.principle-box span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* DPO Action Box */
.dpo-action-box {
  background: linear-gradient(135deg, rgba(123, 46, 255, 0.18), rgba(26, 14, 46, 0.8));
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 32px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dpo-header-area {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.dpo-avatar-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--p), var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(123, 46, 255, 0.35);
}

.dpo-info-lead h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: #ffffff;
}

.dpo-info-lead p {
  margin: 0;
  font-size: 14px;
  color: #dfd8ed;
}

.dpo-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.28s ease;
}

.channel-btn.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
}

.channel-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.channel-btn.email:hover {
  background: rgba(184, 107, 255, 0.2);
  border-color: var(--h);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(123, 46, 255, 0.25);
}

.channel-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.channel-btn-text strong {
  display: block;
  font-size: 14px;
}

.channel-btn-text span {
  font-size: 12px;
  color: var(--muted);
}

.channel-btn:hover .channel-btn-text span {
  color: inherit;
  opacity: 0.9;
}

/* Footer em uma única linha horizontal */
footer.legal-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 28px 24px !important;
  border-top: 1px solid var(--border) !important;
  background: rgba(9, 5, 15, 0.95) !important;
  display: block !important;
}

.legal-footer-inner {
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  white-space: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.legal-footer-inner::-webkit-scrollbar {
  display: none;
}

.legal-footer-left {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.legal-footer-left .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.legal-footer-copy {
  color: var(--muted-dark) !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.legal-footer-links {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 22px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.legal-footer-links a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
}

.legal-footer-links a:hover {
  color: #ffffff !important;
}

.legal-footer .footer-social-links {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.wa-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.wa-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Back to Top Floating Button */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(26, 14, 46, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-back-to-top:hover {
  background: rgba(184, 107, 255, 0.25);
  border-color: var(--h);
  color: #fff;
  transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 992px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 10px;
  }

  .toc-nav {
    max-height: 260px;
  }
}

@media (max-width: 680px) {
  .legal-nav {
    padding: 12px 16px;
  }

  .legal-hero {
    padding: 40px 16px 24px;
  }

  .legal-container {
    padding: 0 16px;
  }

  .legal-section {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .section-title-wrap h2 {
    font-size: 19px;
  }

  .dpo-action-box {
    padding: 22px 18px;
  }

  .dpo-header-area {
    flex-direction: column;
  }

  .legal-footer-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 10px;
    border-radius: 50%;
  }
}
