/**
 * Corretora Legado — estilos da home (Figma SITE-LEGADO).
 * Base: Bootstrap 5.3; tokens abaixo para cores do layout.
 */

:root {
  --legado-navy: #0a1733;
  --legado-navy-deep: #09193a;
  --legado-blue: #1d4699;
  --legado-gold: #c5a059;
  --legado-cyan: #5fe1fb;
  --legado-gray-panel: #efefef;
  --legado-gray-text: #a7a7a7;
  --legado-header-h: 72px;
}

html {
  scroll-padding-top: calc(var(--legado-header-h) + 24px);
}

body.is-landing-home {
  padding-top: var(--legado-header-h);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--legado-navy);
  background: #fff;
}

.main {
  min-height: 0;
}

/* ——— Header ——— */
.legado-header {
  background: #fff;
  border-bottom: 1px solid rgba(10, 23, 51, 0.08);
  min-height: var(--legado-header-h);
}

.legado-header.scrolled {
  box-shadow: 0 4px 20px rgba(10, 23, 51, 0.08);
}

.legado-header__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.legado-logo-text {
  display: inline-block;
  line-height: 0;
}

.legado-logo-text img {
  max-height: 74px;
  width: auto;
  vertical-align: middle;
}

.legado-nav-links .nav-link {
  color: #0a1733;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0.5rem 0.65rem;
}

.legado-nav-links .nav-link:hover,
.legado-nav-links .nav-link:focus {
  color: var(--legado-blue);
}

.legado-btn-outline {
  border: 0;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--legado-blue) 0%, var(--legado-navy-deep) 100%);
}

.legado-btn-outline:hover {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  color: #fff !important;
  border-color: transparent;
}

.legado-btn-nav-auth {
  border: 1px solid rgba(29, 70, 153, 0.28);
  color: var(--legado-blue);
  background: transparent;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: none;
}

.legado-btn-nav-auth:hover,
.legado-btn-nav-auth:focus {
  background: rgba(29, 70, 153, 0.06);
  color: var(--legado-blue) !important;
  border-color: rgba(29, 70, 153, 0.45);
}

/* ——— Hero ——— */
.legado-hero {
  min-height: min(92vh, 900px);
}

.legado-hero__media .swiper.webdoor,
.legado-hero__fallback {
  min-height: min(92vh, 900px);
}

.legado-hero__media .swiper-slide img {
  width: 100%;
  height: min(92vh, 900px);
  object-fit: cover;
}

.legado-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 23, 51, 0.88) 0%, rgba(10, 23, 51, 0.45) 45%, rgba(10, 23, 51, 0.15) 100%);
  pointer-events: none;
}

.legado-hero__title {
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.legado-btn-hero {
  background: linear-gradient(180deg, var(--legado-blue) 0%, var(--legado-navy-deep) 100%);
  border: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
}

.legado-btn-hero:hover {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  color: #fff;
}

.legado-hero .swiper-button-prev,
.legado-hero .swiper-button-next {
  color: #fff;
}

/* ——— Títulos de seção ——— */
.legado-section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  color: var(--legado-navy);
  line-height: 1.15;
}

.legado-section-title--light {
  color: #fff;
}

.legado-rule {
  width: 110px;
  height: 6px;
  border-radius: 3px;
  background: var(--legado-gold);
}

.legado-rule--dark {
  background: var(--legado-navy);
  opacity: 0.85;
}

.legado-rule--primary {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: var(--legado-blue);
  opacity: 1;
}

/* Texto introdutório de seção (Figma: Inter Medium 30px) */
.legado-section-lead {
  font-weight: 500;
  font-size: clamp(1.125rem, 2.15vw, 1.875rem);
  line-height: 1.35;
  color: var(--legado-navy);
  max-width: 63.375rem;
}

/* ——— Seguradoras e parceiros ——— */
.legado-seguradoras__container {
  max-width: 1514px;
}

.legado-seguradoras__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 3.5rem) clamp(1.25rem, 4vw, 4.5rem);
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.legado-seguradoras__logo {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 15.625rem);
  min-height: 3.75rem;
  max-width: 185px;
}

.legado-seguradoras__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.legado-seguradoras__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /*max-height: 5.9375rem;*/
  object-fit: contain;
}

@media (min-width: 768px) {
  .legado-seguradoras__logos {
    row-gap: clamp(2.5rem, 4vw, 4.25rem);
  }
}

/* ——— Somos ——— */
.legado-somos {
  position: relative;
}

.legado-somos__panel {
  background: var(--legado-gray-panel);
  position: relative;
  z-index: 2;
}

.legado-somos__text {
  font-size: 1.05rem;
  line-height: 1.65;
}

.legado-somos__waves {
  position: absolute;
  left: 50%;
  bottom: -265px;
  transform: translateX(-50%);
  width: 100vw;
  height: auto;
  line-height: 0;
  opacity: 1;
  z-index: 3;
  pointer-events: none;
}

.legado-somos__waves img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
}

/* ——— Porque (cards) ——— */
.legado-feature-card__visual {
  min-height: 260px;
}

.legado-feature-card__visual img {
  min-height: 260px;
}

.legado-feature-card__pattern {
  object-fit: cover;
  background: linear-gradient(160deg, var(--legado-blue), var(--legado-navy-deep));
}

.legado-feature-card--dark .legado-feature-card__body {
  background: linear-gradient(180deg, var(--legado-blue) 0%, var(--legado-navy-deep) 100%);
  color: #fff;
}

.legado-feature-card--light .legado-feature-card__body {
  background: #fff;
  border: 1px solid #e8e8e8;
  color: var(--legado-navy);
}

.legado-feature-card__text {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.25;
}

/* Linha abaixo do texto — apenas cards com fundo branco */
.legado-feature-card--light .legado-feature-card__text::after {
  content: '';
  display: block;
  width: 197px;
  height: 10.736px;
  margin-top: 3.25rem;
  background: #c1a674;
}

/* ——— Números ——— */
.legado-numeros {
  background: #f8f9fb;
}

.legado-stat__value {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--legado-gold);
}

.legado-stat__label {
  font-size: 1rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Vídeo ——— */
.legado-video {
  position: relative;
  overflow: visible;
}

.legado-video__box {
  position: relative;
  z-index: 2;
  min-height: 360px;
}

.legado-video__stage {
  position: relative;
}

.legado-video__stage > .container {
  position: relative;
  z-index: 2;
}

.legado-video__waves {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: auto;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.legado-video__waves img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
}

.legado-video__trigger {
  position: relative;
  display: block;
  background: transparent;
  cursor: pointer;
}

.legado-video__trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.legado-video__trigger .legado-video__thumb,
.legado-video__trigger .legado-video__shade,
.legado-video__trigger .legado-video__text-layer,
.legado-video__trigger .legado-video__play-center {
  pointer-events: none;
}

.legado-video__thumb {
  min-height: 360px;
  max-height: 720px;
  transition: opacity 0.2s ease;
}

.legado-video__trigger:hover .legado-video__thumb,
.legado-video__trigger:focus-visible .legado-video__thumb {
  opacity: 0.88;
}

.legado-video__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 23, 51, 0.75) 0%, rgba(10, 23, 51, 0.25) 55%, transparent 100%);
  pointer-events: none;
}

.legado-video__text-layer {
  z-index: 2;
  pointer-events: none;
}

.legado-video__text-layer .legado-video__title {
  pointer-events: auto;
}

.legado-video__play-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  line-height: 0;
}

.legado-video__title {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.legado-play {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--legado-navy) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.legado-play:hover {
  transform: scale(1.05);
}

/* ——— O que vai encontrar ——— */
.legado-oque {
  background: linear-gradient(to top, #1d4699 15.1%, #09193a 57.985%);
}

@media (min-width: 992px) {
  .legado-oque__container {
    max-width: 1400px;
  }
}

.legado-oque__title {
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: #c1a674;
}

.legado-oque__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, min(42vw, 420px)) minmax(0, 1fr);
  grid-template-areas:
    'l1 c r1'
    'l2 c r2'
    'l3 c r3';
  column-gap: clamp(0.35rem, 1.25vw, 1.5rem);
  row-gap: clamp(1rem, 2.2vw, 2.25rem);
  align-items: center;
}

.legado-oque__cell--l1 {
  grid-area: l1;
}

.legado-oque__cell--l2 {
  grid-area: l2;
}

.legado-oque__cell--l3 {
  grid-area: l3;
}

.legado-oque__cell--r1 {
  grid-area: r1;
}

.legado-oque__cell--r2 {
  grid-area: r2;
}

.legado-oque__cell--r3 {
  grid-area: r3;
}

.legado-oque__cell--c {
  grid-area: c;
  align-self: center;
  justify-self: center;
  max-width: 100%;
}

.legado-oque__center-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.legado-oque__pair {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1.25rem);
}

.legado-oque__pair--left {
  flex-direction: row;
  justify-content: flex-end;
}

.legado-oque__pair--right {
  flex-direction: row;
  justify-content: flex-start;
}

.legado-oque__desc {
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  color: #fff;
}

.legado-oque__pair--left .legado-oque__desc {
  text-align: right;
  max-width: 280px;
}

.legado-oque__pair--right .legado-oque__desc {
  text-align: left;
  max-width: 300px;
}

.legado-oque__ring {
  flex-shrink: 0;
  width: clamp(120px, 14vw, 188px);
  height: clamp(120px, 14vw, 188px);
  border-radius: 50%;
  border: 2px solid #c1a674;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.legado-oque__ring img {
  width: 48%;
  height: 48%;
  max-width: 106px;
  max-height: 106px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .legado-oque__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'c'
      'l1'
      'r1'
      'l2'
      'r2'
      'l3'
      'r3';
    row-gap: 1.75rem;
  }

  .legado-oque__center-img {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .legado-oque__pair--left,
  .legado-oque__pair--right {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }

  .legado-oque__pair--left {
    flex-direction: column-reverse;
  }

  .legado-oque__pair--left .legado-oque__desc,
  .legado-oque__pair--right .legado-oque__desc {
    text-align: center;
    max-width: 36rem;
  }
}

/* ——— Áreas ——— */
.legado-areas__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: #0a1733;
}

.legado-areas__rule {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: #1d4699;
}

.legado-area-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 29.5rem;
  padding: 2rem 1.25rem 2.5rem;
  border-radius: 20px;
  background: linear-gradient(to top, #1d4699 15.1%, #09193a 57.985%);
  box-shadow: 0 12px 40px rgba(10, 23, 51, 0.12);
}

.legado-area-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 0.25rem;
}

.legado-area-card__icon img {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.legado-area-card__title {
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.48rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4a86ff 0%, #5fe1fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .legado-area-card__title {
    color: #5fe1fb;
    -webkit-text-fill-color: currentcolor;
  }
}

.legado-area-card__desc {
  font-size: 1.125rem;
  line-height: 1.45;
  color: #fff;
  max-width: 17.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— História ——— */
.legado-historia__container {
  max-width: 1500px;
}

.legado-historia__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: #0a1733;
}

.legado-historia__rule {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: #1d4699;
}

.legado-historia__box {
  max-width: 1500px;
}

.legado-historia__tabs-wrap {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #1d4699;
}

.legado-historia__tabs {
  display: flex;
  flex-wrap: nowrap;
  border: none;
  gap: 0;
}

.legado-historia__tabs .nav-item {
  margin: 0;
}

.legado-historia__year {
  border: none;
  border-radius: 0;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.35rem;
  font-size: clamp(0.78rem, 1.25vw, 1.05rem);
  font-weight: 500;
  color: #fff !important;
  background: transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.legado-historia__year:hover,
.legado-historia__year:focus-visible {
  color: #fff !important;
  opacity: 0.92;
}

.legado-historia__year.active {
  background: #09193a;
  font-weight: 700;
  opacity: 1;
}

.legado-historia__panel {
  background: #09193a;
  border-radius: 0 0 20px 20px;
  padding: 2rem 2.25rem 2.25rem;
  border: none;
}

.legado-historia__pane-grid {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.legado-historia__lead {
  font-size: clamp(1.15rem, 2vw, 1.875rem);
  font-weight: 700;
  color: #fff;
}

.legado-historia__para {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  color: #fff;
  margin-bottom: 0;
}

.legado-historia__para:not(:last-child) {
  margin-bottom: 0.85rem;
}

.legado-historia__photo-img {
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 440px);
  object-fit: cover;
  object-position: center 22%;
}

.legado-historia__nav {
  position: absolute;
  top: 58%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0.35rem 0.5rem;
  color: #fff !important;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.9;
  border: none;
}

.legado-historia__nav:hover,
.legado-historia__nav:focus-visible {
  color: #fff !important;
  opacity: 1;
}

.legado-historia__nav--prev {
  left: 0.2rem;
}

.legado-historia__nav--next {
  right: 0.2rem;
}

@media (min-width: 992px) {
  .legado-historia__panel {
    padding: 2.5rem 3.25rem 2.75rem;
  }

  .legado-historia__pane-grid {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .legado-historia__nav--prev {
    left: 0.65rem;
  }

  .legado-historia__nav--next {
    right: 0.65rem;
  }
}

@media (max-width: 991.98px) {
  .legado-historia__tabs {
    flex-wrap: wrap;
  }

  .legado-historia__tabs-item {
    flex: 1 1 33.333% !important;
    min-width: 30%;
  }

  .legado-historia__nav {
    display: none;
  }
}

/* ——— Depoimentos ——— */
.legado-depo__container {
  max-width: 1500px;
}

.legado-depo__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: #0a1733;
}

.legado-depo__rule {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: #1d4699;
}

.legado-depo-card {
  position: relative;
  display: block;
  flex: 1 1 auto;
  max-width: 363px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 363 / 588;
  box-shadow: 0 12px 40px rgba(10, 23, 51, 0.12);
  background: transparent;
}

.legado-depo-card--btn {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legado-depo-card--btn:hover,
.legado-depo-card--btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10, 23, 51, 0.18);
  outline: none;
}

.legado-depo-card__play {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 76px;
  pointer-events: none;
  line-height: 0;
}

.legado-depo-card__play-icon {
  display: block;
  width: 68px;
  height: 76px;
  max-width: 100%;
}

.legado-depo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: opacity 0.2s ease;
}

.legado-depo-card--btn:hover .legado-depo-card__img,
.legado-depo-card--btn:focus-visible .legado-depo-card__img {
  opacity: 0.88;
}

.legado-depo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 70, 153, 0) 0.3%, rgba(10, 23, 51, 0.6) 59%);
  pointer-events: none;
}

.legado-depo-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.1rem 1.85rem;
  text-align: center;
}

.legado-depo-card__quote {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.65vw, 1.65rem);
  line-height: 1.2;
  color: #fff;
}

.legado-depo-card__nome {
  font-weight: 500;
  font-size: clamp(0.95rem, 1.35vw, 1.34rem);
  line-height: 1.3;
  color: #fff;
}

.legado-depo-swiper-wrap {
  position: relative;
}

.legado-depo-swiper-wrap--nav {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.legado-depo-swiper {
  padding: 0.25rem 0.2rem 2.25rem;
}

.legado-depo-swiper__nav {
  position: absolute;
  top: 42%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1d4699;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(10, 23, 51, 0.12);
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.legado-depo-swiper__nav::after {
  content: none;
}

.legado-depo-swiper__nav:hover,
.legado-depo-swiper__nav:focus-visible {
  color: #0a1733;
  box-shadow: 0 6px 20px rgba(10, 23, 51, 0.18);
  outline: none;
}

.legado-depo-swiper__nav--prev {
  left: 0;
}

.legado-depo-swiper__nav--next {
  right: 0;
}

.legado-depo-swiper-wrap .swiper-button-lock,
.legado-depo-swiper-wrap .swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.legado-testimonial-modal__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #0a1733;
  white-space: pre-wrap;
}

.legado-testimonial-modal .modal-title {
  font-weight: 700;
  color: #0a1733;
}

.legado-depo-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.legado-depo-swiper__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(10, 23, 51, 0.25);
  opacity: 1;
}

.legado-depo-swiper__pagination .swiper-pagination-bullet-active {
  background: #1d4699;
}

/* ——— Academy ——— */
.legado-academy__container {
  max-width: 1500px;
}

.legado-academy__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: #0a1733;
}

.legado-academy__rule {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: var(--legado-blue);
}

.legado-academy__intro {
  max-width: 46.6875rem;
}

.legado-academy-card {
  position: relative;
  flex: 1 1 auto;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 473 / 266;
  box-shadow: 0 10px 36px rgba(10, 23, 51, 0.1);
}

.legado-academy-card__media {
  position: absolute;
  inset: 0;
}

.legado-academy-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.legado-academy-card__img--layer {
  z-index: 1;
}

.legado-academy-card__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(-87deg, rgba(217, 217, 217, 0) 32.17%, rgb(10, 23, 51) 97.99%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.legado-academy-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.85rem 1.1rem 1rem;
}

.legado-academy-card__title {
  font-weight: 700;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.legado-academy-card--rotina .legado-academy-card__title {
  font-size: clamp(1.05rem, 1.85vw, 1.98rem);
  line-height: 1.1;
}

.legado-academy-card__bar {
  width: 52px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
}

.legado-academy-swiper-wrap {
  position: relative;
}

.legado-academy-swiper-wrap--nav {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.legado-academy-swiper {
  padding: 0.25rem 0.2rem 2.25rem;
}

.legado-academy-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

.legado-academy-swiper .swiper-slide > .legado-academy-card,
.legado-academy-swiper .swiper-slide > .legado-academy-card__link {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.legado-academy-swiper .swiper-slide .legado-academy-card {
  width: 100%;
}

.legado-academy-swiper__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(10, 23, 51, 0.25);
  opacity: 1;
}

.legado-academy-swiper__pagination .swiper-pagination-bullet-active {
  background: #1d4699;
}

.legado-academy-swiper__nav {
  position: absolute;
  top: 42%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1d4699;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(10, 23, 51, 0.12);
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.legado-academy-swiper__nav::after {
  content: none;
}

.legado-academy-swiper__nav:hover,
.legado-academy-swiper__nav:focus-visible {
  color: #0a1733;
  box-shadow: 0 6px 20px rgba(10, 23, 51, 0.18);
  outline: none;
}

.legado-academy-swiper__nav--prev {
  left: 0;
}

.legado-academy-swiper__nav--next {
  right: 0;
}

.legado-academy-swiper-wrap .swiper-button-lock,
.legado-academy-swiper-wrap .swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.legado-academy__cta-wrap {
  display: flex;
  justify-content: center;
}

.legado-academy__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 237px;
  min-height: 64px;
  padding: 20px 60px;
  border-radius: 10px;
  background: #1d4699;
  color: #fff !important;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.legado-academy__cta:hover,
.legado-academy__cta:focus-visible {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  color: #fff !important;
  outline: none;
}

.legado-academy-card--interactive {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legado-academy-card--interactive:hover,
.legado-academy-card--interactive:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(10, 23, 51, 0.18);
}

.legado-academy-card__hitarea {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  text-decoration: none;
}

/* ——— Academy: prévia pública de collection ——— */
.legado-academy-preview__content {
  max-width: 920px;
}

.legado-academy-preview__nav {
  display: flex;
  justify-content: flex-end;
}

.legado-academy-preview__back {
  color: #1d4699;
  font-weight: 600;
}

.legado-academy-preview__back:hover {
  color: #0a1733;
}

.legado-academy-preview__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legado-academy-preview__folder,
.legado-academy-preview__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  padding-left: calc(0.85rem + (var(--preview-depth, 0) * 1.15rem));
  border-radius: 10px;
}

.legado-academy-preview__folder {
  margin-top: 0.35rem;
  font-weight: 700;
  color: #0a1733;
  background: rgba(29, 70, 153, 0.05);
}

.legado-academy-preview__folder-icon,
.legado-academy-preview__item-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  text-align: center;
  font-size: 1.1rem;
}

.legado-academy-preview__folder-name {
  font-size: 0.95rem;
}

.legado-academy-preview__item {
  border: 1px solid rgba(10, 23, 51, 0.08);
  background: #fff;
}

.legado-academy-preview__item.is-unlocked {
  cursor: pointer;
}

.legado-academy-preview__item.is-unlocked:hover {
  border-color: rgba(29, 70, 153, 0.22);
  background: rgba(29, 70, 153, 0.03);
}

.legado-academy-preview__item.is-locked {
  color: #b8c2cc;
  background: #fafbfc;
  border-style: dashed;
}

.legado-academy-preview__item-body {
  min-width: 0;
  flex: 1 1 auto;
}

.legado-academy-preview__item-name {
  display: block;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.legado-academy-preview__item.is-unlocked .legado-academy-preview__item-name {
  color: #0a1733;
}

.legado-academy-preview__item.is-unlocked .legado-academy-preview__item-name:hover {
  color: #1d4699;
}

.legado-academy-preview__item-name--button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.legado-academy-preview__item.is-locked .legado-academy-preview__item-name {
  color: #b8c2cc;
}

.legado-academy-preview__item-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
}

.legado-academy-preview__item.is-locked .legado-academy-preview__item-meta {
  color: #c5cdd6;
}

.legado-academy-preview__lock {
  flex: 0 0 auto;
  color: #c5cdd6;
  font-size: 0.95rem;
}

.legado-academy-preview__signup-lead {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  color: #0a1733;
}

.vr-video-modal .modal-body {
  padding-bottom: 1.25rem;
}

.vr-video-modal__player video {
  display: block;
  max-height: 75vh;
  background: #000;
}

.legado-signup-success__container {
  max-width: 42rem;
}

.legado-signup-success__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: #0a1733;
}

.legado-signup-success__rule {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: #1d4699;
}

.legado-signup-success__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #0a1733;
}

.legado-signup-success__note {
  font-size: 0.95rem;
  max-width: 36rem;
}

.legado-signup-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  background: #1d4699;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.legado-signup-success__btn:hover,
.legado-signup-success__btn:focus-visible {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  color: #fff !important;
  outline: none;
}

/* ——— CTA final ——— */
.legado-cta-final {
  overflow: hidden;
  background: #fff;
}

.legado-cta-final__container {
  max-width: 1200px;
}

.legado-cta-final__title {
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 4.25rem);
  line-height: 1.12;
  color: #0a1733;
}

.legado-cta-final__rule {
  width: 110px;
  height: 8px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  background: #1d4699;
}

.legado-cta-final__btn-wrap {
  display: inline-block;
  position: relative;
  z-index: 2;
  transform: translateY(80%);
}

.legado-cta-final__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--legado-blue) 0%, var(--legado-navy-deep) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 3.125rem);
  line-height: 1.1;
  padding: clamp(1.25rem, 3vw, 3.125rem) clamp(2rem, 8vw, 7.5rem);
  border-radius: 10px;
  border: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.legado-cta-final__btn:hover {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  color: #fff !important;
  filter: none;
}

.legado-cta-final__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  line-height: 0;
  background: #e8ecf2;
  aspect-ratio: 1657 / 1246;
  max-height: min(78vh, 1246px);
  overflow: hidden;
}

.legado-cta-final__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ancora ao topo: mantém cabeças visíveis; o corte fica em baixo */
  object-position: center top;
}

/* Banner via elemento static-banner (fora do CTA): fluxo normal, sem absolute */
.legado-static-banner {
  width: 100%;
  max-height: min(56vh, 600px);
  overflow: hidden;
  line-height: 0;
}

.legado-static-banner__link {
  display: block;
  text-decoration: none;
}

.legado-static-banner__img {
  display: block;
  width: 100%;
  height: min(56vh, 600px);
  object-fit: cover;
  object-position: center 28%;
}

/* ——— Página Contato ——— */
.legado-contact {
  background: #fff;
}

.legado-contact__container {
  max-width: 1320px;
}

.legado-contact__title {
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  color: #0a1733;
}

.legado-contact__rule {
  width: 110px;
  height: 8px;
  border-radius: 2px;
  background: #1d4699;
}

.legado-contact__info {
  max-width: 760px;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 1.5rem 1rem;
}

.legado-contact__info-icon {
  color: #1d4699;
  margin-right: 0.4rem;
}

.legado-contact__info-link,
.legado-contact__info-text {
  color: #1d4699;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
}

.legado-contact__label {
  display: block;
  color: #134166;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.legado-contact__input,
.legado-contact__textarea {
  border: 1px solid #a8a8a8;
  border-radius: 10px;
  color: #134166;
  padding: 0.9rem 1.1rem;
}

.legado-contact__input {
  min-height: 56px;
}

.legado-contact__textarea {
  min-height: 260px;
  resize: vertical;
}

.legado-contact__submit {
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--legado-blue) 0%, var(--legado-navy-deep) 100%);
  color: #fff;
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  font-weight: 700;
  padding: 0.6rem 5rem;
  line-height: 1.2;
  transition: filter 0.2s ease;
}

.legado-contact__submit:hover {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  filter: none;
}

.legado-contact__address {
  color: #1d4699;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.legado-contact__address > span:last-child {
  font-weight: 500;
}

.legado-contact__map {
  width: 100%;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.legado-contact__map iframe {
  display: block;
  width: 100%;
  min-height: clamp(280px, 42vw, 500px);
  border: 0;
}

/* ——— Cadastro corretor (modal Faça parte) ——— */
.legado-signup-modal {
  border: none;
  border-radius: 12px;
}

.legado-signup {
  max-width: 1097px;
  margin: 0 auto;
}

.legado-signup__title {
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 2.375rem);
  line-height: 1.25;
  color: #0a1733;
  margin-bottom: 1rem;
}

.legado-signup__rule {
  width: 110px;
  height: 8px;
  border-radius: 2px;
  background: #1d4699;
  margin-bottom: 2rem;
}

.legado-signup__form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.legado-signup__row--contact {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 575.98px) {
  .legado-signup__row--contact {
    grid-template-columns: 1fr;
  }
}

.legado-signup__row--broker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding-top: 1.25rem;
}

@media (max-width: 767.98px) {
  .legado-signup__row--broker {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.legado-signup__row--broker .legado-signup__group--center {
  min-width: 0;
}

.legado-signup__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
  padding: 0.5rem 1.25rem;
  border: 1px solid #a8a8a8;
  border-radius: 10px;
  background: #fff;
}

.legado-signup__field--email .legado-signup__field-label,
.legado-signup__field--phone .legado-signup__field-label {
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
}

.legado-signup__field--select {
  flex-wrap: wrap;
  position: relative;
  padding-right: 2.75rem;
}

.legado-signup__field-label {
  flex: 0 0 auto;
  margin: 0;
  color: #134166;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  line-height: 1.2;
  white-space: nowrap;
}

.legado-signup__field-input,
.legado-signup__select {
  flex: 1 1 160px;
  min-width: 0;
  border: none;
  background: transparent;
  color: #134166;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  padding: 0.35rem 0;
  outline: none;
  box-shadow: none;
}

.legado-signup__field-input:focus,
.legado-signup__select:focus {
  outline: none;
  box-shadow: none;
}

.legado-signup__field--select::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #134166;
  border-bottom: 2px solid #134166;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.legado-signup__select {
  appearance: none;
  cursor: pointer;
  width: 100%;
}

.legado-signup__group {
  border: 0;
  margin: 0;
  padding: 0;
}

.legado-signup__group--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.legado-signup__group--center .legado-signup__question {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.legado-signup__group--center .legado-signup__choices--inline {
  justify-content: center;
  width: 100%;
}

.legado-signup__question {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  color: #0051a0;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  text-align: left;
}

.legado-signup__question--center {
  text-align: center;
}

.legado-signup__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.legado-signup__choices--inline {
  justify-content: center;
}

.legado-signup__choices--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  justify-items: start;
}

.legado-signup__choices--branches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2.5rem;
}

.legado-signup__choice--outros {
  flex-wrap: wrap;
  max-width: 100%;
}

.legado-signup__outros-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.5625rem);
  color: #000;
}

.legado-signup__branches-other {
  border: none;
  border-bottom: 1px solid #333;
  background: transparent;
  min-width: min(220px, 40vw);
  max-width: 100%;
  padding: 0.15rem 0.35rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: #000;
  outline: none;
}

.legado-signup__branches-other:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.legado-signup__branches-other:focus {
  border-bottom-color: #1d4699;
}

@media (min-width: 768px) {
  .legado-signup__choices--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.legado-signup__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  cursor: pointer;
}

.legado-signup__choice-text {
  color: #000;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.5625rem);
  line-height: 1.2;
}

.legado-signup__radio,
.legado-signup__checkbox {
  width: 33px;
  height: 33px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #1d4699;
  cursor: pointer;
}

.legado-signup__radio {
  border-radius: 50%;
}

.legado-signup__actions {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.legado-signup__submit {
  border: none;
  border-radius: 10px;
  background: #1d4699;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.2;
  padding: 1rem clamp(2.5rem, 12vw, 6.875rem);
  text-transform: uppercase;
}

.legado-signup__submit:hover,
.legado-signup__submit:focus {
  background: #163a7d;
  color: #fff;
}

/* ——— Botões primários ——— */
.legado-btn-primary {
  background: linear-gradient(180deg, var(--legado-blue) 0%, var(--legado-navy-deep) 100%);
  border: none;
  color: #fff !important;
  font-weight: 700;
}

.legado-btn-primary:hover {
  background: linear-gradient(180deg, #037fbc 0%, #1d4699 100%);
  color: #fff !important;
}

/* ——— Footer (legado) ——— */
.legado-footer {
  color: #fff;
}

.legado-footer__goldbar {
  height: 12px;
  background: #c1a674;
}

.legado-footer__main {
  background: #0a1733;
}

@media (min-width: 992px) {
  .legado-footer__main {
    min-height: 400px;
    display: flex;
    align-items: center;
  }
}

/* Largura do frame do Figma (~1320px), centralizado — faixas de cor continuam full-bleed. */
.legado-footer__container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.legado-footer__logo {
  display: block;
  max-width: 280px;
  height: auto;
}

.legado-footer__nav-link {
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff !important;
  text-decoration: none;
  line-height: 1.35;
}

.legado-footer__nav-link:hover {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: underline;
}

.legado-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff !important;
  font-size: 1.35rem;
  text-decoration: none;
}

.legado-footer__social-link:hover {
  color: #c1a674 !important;
}

.legado-footer__social-link--inactive {
  cursor: default;
}

.legado-footer__social-link--inactive:hover {
  color: #fff !important;
}

.legado-footer__legal {
  background: #1d4699;
}

.legado-footer__legal-copy {
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 4.47px;
  color: #fff;
  text-transform: uppercase;
}

.legado-footer__legal-copy a{color: white; text-decoration: none;}
.legado-footer__legal-copy a:hover{color: #0a1733; }

@media (max-width: 575.98px) {
  .legado-footer__legal-copy {
    letter-spacing: 2px;
    font-size: 10px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 767px) {
  .legado-cta-final__btn-wrap {
    transform: translateY(50%);
  }
}

@media (max-width: 991.98px) {
  .legado-feature-card__visual,
  .legado-feature-card__visual img {
    min-height: 220px;
  }
}
