.mg-footer {
  background: #000;
  color: #fff;
  padding: 80px 24px 40px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.mg-footer__hex {
  position: absolute;
  inset: 0;
  background-size: 56px 64px;
  opacity: 0.04;
  pointer-events: none;
}

.mg-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.mg-footer__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  .mg-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 768px) {
  .mg-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .mg-footer__grid > * {
    text-align: center !important;
  }
  .mg-footer__grid > * .mg-footer__col-list {
    align-items: center !important;
  }
  .mg-footer__grid > :first-child .mg-footer__tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .mg-footer__grid > :first-child .mg-footer__logo-wrap {
    justify-content: center;
  }
  .mg-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.mg-footer__logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.mg-footer__logo {
  height: 28px;
  width: auto;
}

.mg-footer__tagline {
  font-family: var(--mg-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  max-width: 280px;
  margin: 0;
}

.mg-footer__col-title {
  font-family: var(--mg-font-body);
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.mg-footer__col-title-link {
  color: inherit;
  text-decoration: none;
}
.mg-footer__col-title-link:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

.mg-footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-footer__col-link {
  font-family: var(--mg-font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 150ms;
}
.mg-footer__col-link:hover {
  color: #fff;
}

.mg-footer__grid > :not(:first-child):not(:last-child) { text-align: center; }
.mg-footer__grid > :not(:first-child):not(:last-child) .mg-footer__col-list { align-items: center; }
.mg-footer__grid > :last-child { text-align: right; }
.mg-footer__grid > :last-child .mg-footer__col-list { align-items: flex-end; }

.mg-footer__bottom {
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mg-font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
