:root {
  --legal-purple: #5b3df5;
  --legal-purple-soft: #f4f0ff;
  --legal-navy: #142660;
  --legal-text: #5f6983;
  --legal-border: #e4def4;
  --legal-bg: #faf9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: var(--legal-bg);
  color: var(--legal-navy);
}

/* Wrapper exclusivo. Nada de .container genérico. */
.legal-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* HEADER */
.legal-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eeeaf7;
}

.legal-header .legal-wrap {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  width: 210px;
  height: 78px;
  display: flex;
  align-items: center;
  overflow: visible;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  width: 205px;
  height: 74px;
  object-fit: contain;
  transform: scale(1.18);
  transform-origin: left center;
}

.legal-back {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcd3ff;
  border-radius: 14px;
  background: #f8f5ff;
  color: var(--legal-purple);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease;
}

.legal-back:hover {
  background: #eee8ff;
  transform: translateY(-1px);
}

/* HERO */
.legal-hero {
  width: 100%;
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(91,61,245,.045), transparent 42%),
    var(--legal-bg);
}

.legal-hero .legal-wrap {
  text-align: left;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 16px;
  border: 1px solid #dcd4ff;
  border-radius: 999px;
  background: #f4f0ff;
  color: var(--legal-purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.legal-hero h1 {
  margin: 0 0 14px;
  max-width: 900px;
  color: var(--legal-navy);
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.legal-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--legal-text);
  font-size: 14px;
  line-height: 1.72;
}

.legal-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-meta span {
  padding: 8px 11px;
  border-radius: 10px;
  background: #f1eef9;
  color: #737a90;
  font-size: 10px;
}

/* CONTEÚDO */
.legal-content {
  width: 100%;
  padding: 8px 0 84px;
}

.legal-card {
  width: 100%;
  margin: 0 auto;
  padding: 38px 40px;
  border: 1px solid var(--legal-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(39, 31, 86, .07);
}

.legal-card section + section {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid #eeeaf7;
}

.legal-card h2 {
  margin: 0 0 12px;
  color: #1b2c68;
  font-size: 20px;
  line-height: 1.25;
}

.legal-card h3 {
  margin: 20px 0 8px;
  color: #344274;
  font-size: 14px;
}

.legal-card p,
.legal-card li {
  color: var(--legal-text);
  font-size: 12px;
  line-height: 1.78;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-card a {
  color: var(--legal-purple);
}

/* CONTATO / CALLOUT */
.legal-callout {
  margin-top: 18px;
  padding: 17px 18px;
  border: 1px solid #dcd4ff;
  border-radius: 14px;
  background: #f7f3ff;
}

.legal-callout strong {
  display: block;
  margin-bottom: 5px;
  color: #4f35d9;
  font-size: 12px;
}

.legal-callout p {
  margin: 0;
}

.legal-contact {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legal-contact a {
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0daf5;
  border-radius: 12px;
  background: #faf8ff;
  color: #5138df;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

/* FOOTER */
.legal-footer {
  width: 100%;
  padding: 28px 0;
  border-top: 1px solid #eeeaf7;
  background: #fff;
}

.legal-footer .legal-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-footer span,
.legal-footer a {
  color: #7a8197;
  font-size: 10px;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--legal-purple);
}

/* RESPONSIVO */
@media (max-width: 760px) {
  .legal-wrap {
    width: min(100% - 28px, 1120px);
  }

  .legal-header .legal-wrap {
    min-height: 88px;
  }

  .legal-brand {
    width: 150px;
    height: 58px;
  }

  .legal-brand img {
    width: 145px;
    height: 54px;
    transform: scale(1.08);
  }

  .legal-back {
    min-height: 42px;
    padding: 0 13px;
    font-size: 11px;
  }

  .legal-hero {
    padding: 48px 0 30px;
  }

  .legal-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .legal-card {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .legal-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .legal-header .legal-wrap {
    gap: 12px;
  }

  .legal-brand {
    width: 120px;
  }

  .legal-brand img {
    width: 118px;
  }

  .legal-back {
    padding: 0 10px;
    font-size: 10px;
  }

  .legal-meta {
    gap: 7px;
  }
}


body.legal-page::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: #17223f;
}
/* =========================================================
   CONSENTIMENTO DE COOKIES — PÁGINAS LEGAIS
   ========================================================= */

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9999;

  width: min(760px, calc(100% - 28px));
  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  transform: translateX(-50%);

  border: 1px solid #ded7f5;
  border-radius: 16px;

  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 50px rgba(35,28,78,.16);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  color: #1d2a62;
  font-size: 12px;
}

.cookie-consent__copy p {
  margin: 0;
  color: #697088;
  font-size: 10px;
  line-height: 1.5;
}

.cookie-consent__copy a {
  color: #5a3ee8;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-consent .btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent .btn-primary {
  border: 1px solid #5f43ee;
  background: #5f43ee;
  color: #fff;
}

.cookie-consent .btn-outline {
  border: 1px solid #d9d2ed;
  background: #fff;
  color: #5f6579;
}

@media (max-width: 640px) {
  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__actions .btn {
    flex: 1;
  }
}
