/* Footer CTA — quebra de linha estável (override home3 quando presente) */

.footer-s .m3-footer-hero {
  max-width: min(100%, 78rem) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem !important;
  padding-top: 0.8rem;
  padding-bottom: 0.4rem;
}

.footer-s .m3-footer-title {
  margin: 0;
  color: var(--maria-white-card);
  font-weight: 600;
  font-size: clamp(3.6rem, 2.4rem + 3vw, 7.2rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.028em !important;
  padding-bottom: 0.12em !important;
  max-width: min(100%, 56rem) !important;
  text-wrap: pretty;
}

.footer-s .m3-footer-tagline {
  margin: 0;
  font-size: clamp(1.6rem, 1.4rem + 0.28vw, 2rem) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45 !important;
  max-width: min(100%, 46rem) !important;
  color: rgba(250, 249, 247, 0.72) !important;
  text-wrap: pretty;
}

.footer-s .m3-footer-tagline em {
  font-style: normal;
  color: var(--maria-coral-soft);
  font-weight: 500;
}

.footer-s .m3-footer-title-line {
  display: inline-block !important;
}

.footer-s .m3-footer-title br {
  display: inline !important;
}

.footer-s .m3-footer-hero .global-footer-cta-c {
  margin-top: 0.4rem !important;
}

.ma-legal .container-small {
  max-width: min(100%, 110rem) !important;
}

.ma-legal .h1,
.ma-legal .caption,
.ma-legal .paragraph-l,
.ma-legal .h3 {
  max-width: min(100%, 96rem) !important;
}

.ma-legal .h3 {
  margin: 2.8rem 0 1.2rem;
}

.ma-legal .h3:first-of-type {
  margin-top: 0.4rem;
}

.ma-legal .paragraph-l {
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.ma-legal .paragraph-l:has(> a.m3-hero-secondary:only-child) {
  text-align: start;
}

@media (max-width: 767px) {
  .ma-legal {
    padding: 10.8rem 0 6.4rem !important;
  }

  .ma-legal .container-small {
    padding-left: 2.4rem !important;
    padding-right: 2.4rem !important;
  }

  .ma-legal .caption {
    margin-bottom: 0.8rem;
  }

  .ma-legal .h1 {
    font-size: clamp(3.6rem, 11vw, 4.6rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 1.8rem !important;
  }

  .ma-legal .h3 {
    font-size: clamp(2.2rem, 6.2vw, 2.6rem) !important;
    line-height: 1.22 !important;
    margin: 2.4rem 0 1rem !important;
  }

  .ma-legal .paragraph-l {
    font-size: 1.6rem !important;
    line-height: 1.62 !important;
    margin-bottom: 1.4rem;
  }

  .footer-s .global-footer-strip-c {
    overflow: hidden;
    padding: 0.8rem 0 0.4rem;
  }

  .footer-s .hp-footer-h1 {
    font-size: clamp(3.2rem, 10vw, 4.4rem) !important;
  }

  .footer-s .m3-footer-hero {
    gap: 1.2rem !important;
    padding-inline: 0.4rem;
  }

  .footer-s .m3-footer-title {
    font-size: clamp(2.8rem, 8vw, 3.8rem) !important;
    line-height: 1.14 !important;
    max-width: 100% !important;
  }

  .footer-s .m3-footer-tagline {
    max-width: min(100%, 28rem) !important;
    font-size: 1.5rem !important;
    line-height: 1.45 !important;
    padding-inline: 0.8rem;
  }

  .footer-s .m3-footer-hero .global-footer-cta-c {
    margin-top: 0.8rem !important;
  }

  .footer-s .global-footer-nav-w {
    justify-content: center;
    gap: 1rem 1.6rem !important;
  }

  .footer-s .global-footer-rmenu-c {
    gap: 2.4rem;
  }

  .footer-s .global-footer-bottom-w {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
}

/* Cards de cliente: nome + segmento, próprios e Fellow iguais */
html body .m3-clients-body {
  display: flex;
  flex-direction: column;
}

html body .m3-client-group + .m3-client-group {
  margin-top: 12rem;
  padding-top: 4.8rem;
  border-top: 1px solid rgba(250, 249, 247, 0.18);
}

html body .m3-client-group-label.caption {
  display: block;
  margin: 0 0 2.4rem !important;
}

html body .m3-cine-img {
  object-position: 78% 38% !important;
  transform: none !important;
}

html body .sb-close-media img {
  object-position: 74% 46% !important;
  transform: none !important;
}

html body .m3-client-pill .m3-client-logo {
  display: block;
  width: auto;
  max-width: 11rem;
  height: 2.8rem;
  max-height: 2.8rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

html body .m3-client-flag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-transform: none !important;
  line-height: 0;
}

html body .m3-client-flag img,
html body .m3-client-pill .m3-client-flag img,
html body .m3-client-flag img.emoji {
  display: block;
  width: 1.8rem;
  height: 1.3rem;
  max-width: 1.8rem;
  max-height: 1.3rem;
  object-fit: cover;
  border-radius: 0.2rem;
  filter: none !important;
  opacity: 1;
}

html body .m3-client-pill {
  flex-direction: column;
  justify-content: center !important;
  align-items: center;
  gap: 0.7rem;
  overflow: hidden;
  padding: 1.6rem 1.6rem !important;
  text-align: center;
}

html body .m3-client-pill--has-quote {
  padding-right: 1.6rem !important;
}

html body .m3-client-pill-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}

html body .m3-client-pill-label,
html body .m3-client-pill:not(.m3-client-pill--has-quote) .m3-client-pill-label,
html body .m3-client-pill--has-quote .m3-client-pill-label {
  flex: none;
  width: 100%;
  text-align: center !important;
  overflow-wrap: anywhere;
}

html body .m3-client-pill-segment {
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--maria-coral-soft);
  text-align: center;
}

/* Depoimentos nos cards de entrega: mesmo contraste do card branco */
html body .m3-card-quote {
  background: var(--maria-white-card) !important;
  color: var(--maria-charcoal) !important;
  border: 1px solid rgba(70, 69, 69, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .m3-quote-context {
  opacity: 1 !important;
  color: var(--maria-coral) !important;
}

html body .m3-card-quote .m3-quote-text,
html body .m3-card-quote .hp-cust-name {
  color: var(--maria-charcoal) !important;
}

html body .m3-card--jungle .paragraph-l,
html body .m3-card--blue .paragraph-l {
  color: rgba(250, 249, 247, 0.96) !important;
}

/* Descendentes do hero (g, q, p) — não cortar */
html body .m3-line {
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.04em;
}

html body .m3-hero-mask-stack--phrase {
  gap: 0.08em;
}

html body .m3-hero-mask-stack--phrase .m3-mask-word--line,
html body .m3-mask-word {
  line-height: 1.08 !important;
  overflow: visible;
  padding-bottom: 0.12em;
}

/* Sobre · foto na segunda dobra */
html body .sb-intro-layout {
  grid-template-columns: minmax(0, 1fr) minmax(26rem, 38rem);
}

html body .sb-intro-visual {
  margin: 0;
}

html body .sb-intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--corner-radius-m);
  background: #0d0c0c;
  box-shadow: var(--ma-shadow-card);
}

@media (max-width: 991px) {
  html body .sb-intro-layout {
    grid-template-columns: 1fr;
  }
}
