/* ==========================================================
   AIOS_PUBLIC_TRUST_FOOTER_PRO_V1
   Full-width professional legal/support footer
   ========================================================== */

#madmixLegalFooter {
  box-sizing: border-box;
  width: 100%;

  margin: 0;
  padding: 12px 24px 7px;

  background: #020611;
  color: #d7d7d7;
  border-top: 1px solid rgba(212,175,55,.42);

  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    max-content
    max-content
    112px;

  grid-template-areas:
    "links support entity qr"
    "copyright copyright copyright copyright";

  align-items: center;
  column-gap: 22px;
  row-gap: 6px;

  min-height: 0 !important;
  height: auto !important;

  font-family: Arial, Helvetica, sans-serif;
}

/* Old identity presentation remains retired */
#madmixLegalFooter .madmixLegalIdentity {
  display: none !important;
}

/* Old processor slot is retired completely */
#madmixLegalFooter .madmixLegalProcessor {
  display: none !important;
}

/* ==========================================================
   LEGAL LINKS — BIGGER + SPREAD ACROSS AVAILABLE WIDTH
   ========================================================== */

#madmixLegalFooter .madmixLegalLinks {
  grid-area: links;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-width: 0;

  margin: 0 !important;
  padding: 0 !important;

  gap: 18px;
  white-space: nowrap;
}

#madmixLegalFooter .madmixLegalLinks a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  margin: 0 !important;
  padding: 0 !important;

  color: #d4af37;

  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;

  text-decoration: none;
  white-space: nowrap;
}

#madmixLegalFooter .madmixLegalLinks a:hover,
#madmixLegalFooter .madmixLegalLinks a:focus-visible {
  color: #fff;
}

/* ==========================================================
   SUPPORT — SAME BASELINE, CLEAN SIZE
   ========================================================== */

#madmixLegalFooter .madmixLegalSupport {
  grid-area: support;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;

  gap: 9px;

  margin: 0 !important;
  padding: 0 !important;

  font-size: 13px !important;
  line-height: 1.2 !important;

  white-space: nowrap;
}

#madmixLegalFooter .madmixLegalSupport a,
#madmixLegalFooter .madmixLegalSupport span {
  margin: 0 !important;
  padding: 0 !important;

  font-size: 13px !important;
  line-height: 1.2 !important;
}

#madmixLegalFooter .madmixLegalSupport a {
  color: #d4af37;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================
   MATRIXALIGNER LLC — BESIDE QR
   ========================================================== */

#madmixLegalFooter .madmixFooterEntity {
  grid-area: entity;

  margin: 0 !important;
  padding: 0 !important;

  color: #d4af37;

  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700;

  text-align: right;
  white-space: nowrap;
}

/* ==========================================================
   QR — PRESERVE CURRENT VISUAL SIZE
   ========================================================== */

#madmixLegalFooter .madmixConnectQR {
  grid-area: qr;

  box-sizing: border-box;
  width: 108px !important;

  margin: 0 0 0 auto !important;
  padding: 6px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center;

  gap: 3px;

  border: 1px solid rgba(212,175,55,.72);
  border-radius: 8px;

  background: rgba(255,255,255,.015);
}

#madmixLegalFooter .madmixConnectQRTitle {
  margin: 0 !important;
  padding: 0 !important;

  color: #d4af37;

  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 800;

  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

#madmixLegalFooter .madmixConnectQRLink {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#madmixLegalFooter .madmixConnectQRLink img,
#madmixLegalFooter .madmixConnectQR img {
  display: block !important;

  width: 72px !important;
  height: 72px !important;

  margin: 0 auto !important;
  padding: 4px !important;

  background: #fff;
}

#madmixLegalFooter .madmixConnectQRUrl {
  margin: 0 !important;
  padding: 0 !important;

  font-size: 6px !important;
  line-height: 1 !important;

  text-align: center;
  white-space: nowrap;
}

#madmixLegalFooter .madmixConnectQRUrl a {
  color: #d4af37;
  text-decoration: none;
}

#madmixLegalFooter .madmixConnectQRBrand {
  display: none !important;
}

/* ==========================================================
   COPYRIGHT — TIGHT BOTTOM ROW
   ========================================================== */

#madmixLegalFooter .madmixLegalCopyright {
  grid-area: copyright;

  margin: 0 !important;
  padding: 6px 0 0 !important;

  border-top: 1px solid rgba(255,255,255,.08);

  color: #777;

  font-size: 10px !important;
  line-height: 1.1 !important;

  text-align: left;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1200px) {
  #madmixLegalFooter {
    grid-template-columns:
      minmax(0,1fr)
      max-content
      100px;

    grid-template-areas:
      "links entity qr"
      "support support qr"
      "copyright copyright copyright";

    column-gap: 14px;
  }

  #madmixLegalFooter .madmixLegalLinks {
    justify-content: flex-start;
    gap: 18px;

    overflow-x: auto;
    scrollbar-width: none;
  }

  #madmixLegalFooter .madmixLegalLinks::-webkit-scrollbar {
    display: none;
  }

  #madmixLegalFooter .madmixLegalLinks a {
    font-size: 13px !important;
  }

  #madmixLegalFooter .madmixConnectQR {
    width: 96px !important;
  }

  #madmixLegalFooter .madmixConnectQRLink img,
  #madmixLegalFooter .madmixConnectQR img {
    width: 62px !important;
    height: 62px !important;
  }
}

@media (max-width: 640px) {
  #madmixLegalFooter {
    padding: 10px 10px 6px;

    grid-template-columns:
      minmax(0,1fr)
      82px;

    grid-template-areas:
      "links qr"
      "support qr"
      "entity qr"
      "copyright copyright";

    column-gap: 8px;
    row-gap: 5px;
  }

  #madmixLegalFooter .madmixLegalLinks {
    gap: 14px;
  }

  #madmixLegalFooter .madmixLegalLinks a {
    font-size: 11px !important;
  }

  #madmixLegalFooter .madmixLegalSupport,
  #madmixLegalFooter .madmixLegalSupport a,
  #madmixLegalFooter .madmixLegalSupport span,
  #madmixLegalFooter .madmixFooterEntity {
    font-size: 10px !important;
  }

  #madmixLegalFooter .madmixConnectQR {
    width: 80px !important;
    padding: 5px !important;
  }

  #madmixLegalFooter .madmixConnectQRLink img,
  #madmixLegalFooter .madmixConnectQR img {
    width: 52px !important;
    height: 52px !important;
  }
}

/* AIOS_PUBLIC_TRUST_FOOTER_PRO_V1_END */
