/* =========================================================
     PÁGINA DE TERMOS E POLÍTICAS
========================================================== */

.legal-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 25%, rgba(8, 120, 232, 0.16), transparent 28%),
    linear-gradient(135deg, #eaf4ff 0%, #f7fbff 55%, #fbfaf6 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -120px;
  bottom: -220px;
  border: 70px solid rgba(8, 120, 232, 0.06);
  border-radius: 50%;
  z-index: -1;
}

.legal-container {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 80px;
}

.legal-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.legal-eyebrow span {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(8, 184, 138, 0.12);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-family: Poppins, sans-serif;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.legal-hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.legal-section {
  padding: 90px 0 110px;
  background: var(--cream);
}

.legal-layout {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 65px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 95px;
}

.legal-sidebar-title {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-sidebar a {
  display: block;
  padding: 11px 13px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #58708a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.legal-sidebar a:hover {
  color: var(--blue);
  background: var(--blue-pale);
  border-left-color: var(--blue);
}

.legal-document {
  min-width: 0;
}

.legal-intro {
  margin-bottom: 28px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(7, 34, 60, 0.045);
}

.legal-intro strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-family: Poppins, sans-serif;
  font-size: 18px;
}

.legal-intro p {
  margin: 0 0 12px;
  color: #58708a;
  font-size: 14px;
  line-height: 1.75;
}

.legal-intro small {
  color: #8b9aaa;
  font-size: 11px;
}

.legal-card {
  scroll-margin-top: 90px;
  margin-bottom: 22px;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(7, 34, 60, 0.055);
}

.legal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-bottom: 17px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.legal-card h2 {
  margin: 0 0 15px;
  color: var(--navy);
  font-family: Poppins, sans-serif;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-card h3 {
  margin: 29px 0 9px;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.legal-card p {
  margin: 0 0 15px;
  color: #58708a;
  font-size: 14px;
  line-height: 1.85;
}

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

.legal-highlight {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--mint);
  border-radius: 0 10px 10px 0;
  background: #effbf7;
  color: #527064;
  font-size: 13px;
  line-height: 1.75;
}

.legal-contact {
  scroll-margin-top: 90px;
  margin-top: 24px;
  padding: 34px 38px;
  border-radius: 17px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
}

.legal-contact::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  top: -130px;
  border: 45px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.legal-contact > div {
  position: relative;
  z-index: 1;
}

.legal-contact > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-contact h2 {
  margin: 0 0 8px;
  font-family: Poppins, sans-serif;
  font-size: 25px;
}

.legal-contact p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.legal-contact .button {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width: 900px) {
  .legal-container,
  .legal-layout {
    width: min(100% - 48px, 720px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-sidebar {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .legal-sidebar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-hero {
    min-height: 470px;
  }

  .legal-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .legal-container,
  .legal-layout {
    width: min(100% - 32px, 520px);
  }

  .legal-container {
    padding-top: 75px;
  }

  .legal-hero {
    min-height: 450px;
  }

  .legal-hero h1 {
    font-size: 52px;
  }

  .legal-hero p {
    font-size: 15px;
  }

  .legal-section {
    padding: 55px 0 75px;
  }

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

  .legal-card {
    padding: 28px 22px;
  }

  .legal-card h2 {
    font-size: 23px;
  }

  .legal-contact {
    padding: 28px 23px;
  }
}


/* Redes sociais */
.social-links {
  display: flex;
  gap: 10px;
  align-content: end;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}
