/* ─── REGULATORY ACCORDION ─── */
.regulatory-section {
  width: min(calc(100% - 48px), var(--container-max));
  margin: 0 auto;
  padding: 96px 0;
  background: #f5f5f5;
  box-shadow: 0 0 0 100vmax #f5f5f5;
  clip-path: inset(0 -100vmax);
  color: #3a3a3a;
}

.regulatory-heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 740px;
  margin-bottom: 74px;
}

.regulatory-heading h2 {
  font-size: clamp(34px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.389;
  letter-spacing: .72px;
  text-transform: uppercase;
}

.regulatory-heading p,
.regulatory-copy p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.389;
  letter-spacing: .36px;
}

.regulatory-copy strong {
  font-weight: 600;
}

.regulatory-grid {
  display: grid;
  grid-template-columns: 438px minmax(0, 1fr);
  gap: 91px;
  align-items: end;
}

.regulatory-copy {
  display: flex;
  flex-direction: column;
  gap: 60px;
}


.regulatory-accordion {
  display: flex;
  align-items: stretch;
  gap: 32px;
  min-width: 0;
  width: 100%;
}

.regulatory-card {
  display: flex;
  min-height: 372px;
  max-height: 372px;
  overflow: hidden;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: 64px;
  transition: flex-grow 0.4s cubic-bezier(0.4, 0, 0.2, 1), flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.regulatory-card.is-open {
  flex-grow: 1;
  flex-basis: 709px;
}

.regulatory-card__tab {
  position: relative;
  width: 64px;
  min-height: 372px;
  border: 0;
  border-left: 1px solid #3a3a3a;
  background: transparent;
  color: #3a3a3a;
  cursor: pointer;
  display: block;
  padding: 0;
}

.regulatory-card__tab-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 12px;
  width: max-content;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}

.regulatory-card__tab-inner span {
  display: block;
  min-width: 250px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.389;
  letter-spacing: .6px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.regulatory-card__tab-inner strong {
  display: block;
  color: #b49b78;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.389;
  letter-spacing: .36px;
  white-space: nowrap;
}

.regulatory-card__body {
  position: relative;
  display: none;
  width: 100%;
  min-height: 372px;
  overflow: visible;
  background: transparent;
}

.regulatory-card__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../../images/figma-regulatory-card-bg.png") center / 100% 100% no-repeat;
  pointer-events: none;
  display: none;
}

.regulatory-card.is-open .regulatory-card__tab {
  display: none;
}

.regulatory-card.is-open .regulatory-card__body {
  display: grid;
  grid-template-columns: 218px 1fr;
}

.regulatory-card__media {
  position: relative;
  z-index: 1;
  min-height: 372px;
  border-radius: 25px 0 0 25px;
  overflow: hidden;
}

.regulatory-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.regulatory-card__media--image {
  background:
    linear-gradient(213deg, rgba(236, 222, 195, .72) 41%, rgba(155, 135, 107, .72) 150%),
    #c5a880;
}

.regulatory-card__media--placeholder {
  background:
    linear-gradient(213deg, rgba(236, 222, 195, .78) 41%, rgba(155, 135, 107, .82) 150%),
    linear-gradient(135deg, #e5e7eb, #f7f8fb);
}

.regulatory-card__content {
  position: relative;
  z-index: 1;
  padding: 75px 58px 56px 42px;
  background: transparent;
  /* DocBlocker: define a cor do corner para combinar com o fundo do notch desta área */
  --corner-color: #f7f8fb;
}

.regulatory-card__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  border-radius: 0 25px 25px 0;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - 62px),
      calc(100% - 100px) calc(100% - 62px),
      calc(100% - 100px) 100%,
      0 100%);
}

.regulatory-card__content::after {
  display: none;
}

.regulatory-card__content>span:not(.regulatory-corner) {
  display: block;
  margin-bottom: 24px;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.389;
  letter-spacing: .96px;
  text-transform: uppercase;
}

/* Corner notches */
.regulatory-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  /* DocBlocker: migrado de background: url(svg) para mask + background-color.
   * Cor definida via --corner-color no contexto pai (.regulatory-card__content).
   * O fundo da seção é #f5f5f5, por isso o corner precisa dessa cor para criar
   * o efeito de recorte negativo. */
  background-color: var(--corner-color, #f5f5f5);
  -webkit-mask: url("../../images/corner.svg") center / contain no-repeat;
  mask: url("../../images/corner.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 10;
  margin: 0 !important;
  padding: 0 !important;
}

.regulatory-corner--1 {
  bottom: 0;
  right: 100px;
  transform: rotate(180deg);
}

.regulatory-corner--2 {
  bottom: 30px;
  right: 68px;
  /* DocBlocker: vértice côncavo interno do notch — deve ter a cor do card (#fff),
   * não a cor do fundo externo. Sem isso o canto interno fica "cortado" e o
   * efeito de arredondamento não aparece. */
  --corner-color: #fff;
}

.regulatory-corner--3 {
  bottom: 60px;
  right: 0;
  transform: rotate(-180deg);
}

.regulatory-card__content p {
  color: #3a3a3a;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.389;
  letter-spacing: .36px;
}

.regulatory-card__content strong {
  position: absolute;
  right: 20px;
  bottom: -5px;
  color: #b49b78;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.389;
  letter-spacing: .96px;
}

@media (max-width: 1180px) {
  .regulatory-corner {
    display: none;
  }

  .regulatory-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .regulatory-copy {
    max-width: 680px;
  }

  .regulatory-accordion {
    flex-direction: column;
    gap: 16px;
  }

  .regulatory-card,
  .regulatory-card__body {
    width: 100%;
    min-height: auto;
  }

  .regulatory-card {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    max-height: none;
    overflow: visible;
  }

  .regulatory-card__tab {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 76px;
    border: 1px solid #d9dee8;
    border-radius: 20px;
    justify-content: space-between;
    padding: 0 22px;
  }

  .regulatory-card__tab-inner {
    position: static;
    width: 100%;
    transform: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
  }

  .regulatory-card__tab-inner span {
    min-width: 0;
    font-size: 14px;
    white-space: normal;
  }

  .regulatory-card.is-open .regulatory-card__body {
    grid-template-columns: 180px 1fr;
  }

  .regulatory-card__content {
    padding: 36px 32px 72px;
  }

  .regulatory-card__content::before {
    bottom: 0;
    border-radius: 0 0 25px 25px;
  }

  .regulatory-card.is-open {
    flex-basis: none;
  }

  .regulatory-card__content::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .regulatory-section {
    width: min(calc(100% - 32px), var(--container-max));
    padding: 72px 0;
  }

  .regulatory-heading {
    margin-bottom: 44px;
  }

  .regulatory-heading h2 {
    font-size: 28px;
  }

  .regulatory-heading p,
  .regulatory-copy p,
  .regulatory-card__content p {
    font-size: 16px;
  }

  .regulatory-copy {
    gap: 32px;
  }


  .regulatory-card__tab {
    display: none !important;
  }

  .regulatory-card__body {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .regulatory-card__media {
    height: 220px;
    border-radius: 25px 25px 0 0;
  }

  .regulatory-card__content {
    padding: 28px 24px 76px;
  }
}