/* Shared Mercado do Digital footer — standalone legal pages and SPA routes. */
.mdd-global-footer,
.mdd-global-footer * {
  box-sizing: border-box;
}

.mdd-global-footer {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin-top: auto;
  padding: 46px clamp(18px, 7.3vw, 104px) 18px;
  color: #e8e4d8;
  background: inherit !important;
  background-image: none !important;
  border-top: 1px solid rgba(255, 214, 0, .22);
  font-family: inherit;
  overflow-wrap: anywhere;
}

.mdd-footer-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.mdd-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(170px, .8fr));
  align-items: start;
  gap: clamp(24px, 4.3vw, 72px);
  padding: 0 0 38px;
}

.mdd-footer-brand-block { min-width: 0; }

.mdd-global-footer .mdd-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f4f0e5;
  text-decoration: none;
}

.mdd-global-footer .mdd-footer-brand-link .brand-symbol {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.mdd-global-footer .mdd-footer-brand-link .brand-symbol svg {
  display: block;
  width: 48px;
  height: 48px;
}

.mdd-global-footer .mdd-footer-brand-link .brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.mdd-global-footer .mdd-footer-brand-link .brand-type span {
  color: #e8e4d8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}

.mdd-global-footer .mdd-footer-brand-link .brand-type strong {
  margin-top: 4px;
  color: #ffd600;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.mdd-footer-description {
  max-width: 300px;
  margin: 19px 0 0;
  color: #aaa394;
  font-size: 14px;
  line-height: 1.7;
}

.mdd-footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.mdd-footer-heading {
  position: relative;
  margin: 0 0 3px;
  padding-left: 13px;
  color: #f5f1e6;
  font-family: var(--display, inherit);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.mdd-footer-heading::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: #ffd600;
}

.mdd-footer-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  color: #bdb8ab;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.mdd-footer-link:hover,
.mdd-footer-top-link:hover,
.mdd-footer-link:focus-visible,
.mdd-footer-top-link:focus-visible {
  color: #ffd600;
}

.mdd-footer-link:hover { transform: translateX(2px); }

.mdd-footer-link:focus-visible,
.mdd-footer-top-link:focus-visible,
.mdd-footer-brand-link:focus-visible {
  outline: 2px solid #ffd600;
  outline-offset: 4px;
  border-radius: 3px;
}

.mdd-footer-icon {
  display: inline-flex;
  flex: 0 0 17px;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 20px;
  color: #ffd600;
}

.mdd-footer-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mdd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 214, 0, .16);
  color: #817c70;
  font-size: 12px;
  line-height: 1.6;
}

.mdd-footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bdb8ab;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

@media (max-width: 900px) {
  .mdd-global-footer {
    padding-left: clamp(20px, 5vw, 42px);
    padding-right: clamp(20px, 5vw, 42px);
  }

  .mdd-footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 36px;
  }

  .mdd-footer-brand-block { grid-column: 1 / -1; }

  .mdd-footer-description {
    max-width: 420px;
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .mdd-global-footer { padding: 29px 18px 15px; }

  .mdd-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 27px;
  }

  .mdd-footer-brand-block { grid-column: auto; }

  .mdd-global-footer .mdd-footer-brand-link .brand-symbol,
  .mdd-global-footer .mdd-footer-brand-link .brand-symbol svg {
    width: 42px;
    height: 42px;
  }

  .mdd-global-footer .mdd-footer-brand-link .brand-symbol { flex-basis: 42px; }

  .mdd-global-footer .mdd-footer-brand-link .brand-type strong { font-size: 19px; }

  .mdd-footer-description {
    max-width: 340px;
    font-size: 13px;
  }

  .mdd-footer-group { gap: 12px; }
  .mdd-footer-heading { font-size: 16px; }
  .mdd-footer-link { font-size: 13px; }

  .mdd-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdd-footer-link,
  .mdd-footer-top-link { transition: none; }
  .mdd-footer-link:hover { transform: none; }
}