.global-site-footer,
.global-site-footer * {
  box-sizing: border-box;
}

.global-site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 0 0 auto;
  padding: 2.375rem 0 2.125rem;
  background: #fffdfa;
  color: #211f24;
  font-family: "Source Han Sans CN", sans-serif;
}

.global-footer-frame {
  width: min(1504px, calc(100% - 128px));
  margin: 0 auto;
}

.global-footer-main {
  display: grid;
  grid-template-columns: 1.25fr .78fr .82fr 1.65fr;
  gap: 3rem;
  align-items: start;
}

.global-footer-brand img {
  display: block;
  width: 156px;
  height: auto;
  margin-bottom: 1.375rem;
  object-fit: contain;
  object-position: left center;
}

.global-footer-brand p,
.global-footer-contact p {
  margin: 0;
  color: #514d52;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.global-footer-nav {
  display: grid;
  gap: 0.75rem;
}

.global-footer-nav h2,
.global-footer-contact h2 {
  margin: 0 0 0.5rem;
  color: #211f24;
  font-family: "Source Han Serif CN", serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.global-footer-nav a {
  color: #514d52;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color .16s ease;
}

.global-footer-nav a:hover {
  color: #b6405a;
}

.global-footer-nav a:focus-visible {
  outline: 2px solid #bfa86f;
  outline-offset: 4px;
}

.global-footer-contact {
  display: grid;
  gap: 0.625rem;
}

.global-footer-resources {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.global-footer-qr {
  display: grid;
  width: 132px;
  margin: 0;
  justify-items: center;
  gap: 0.625rem;
}

.global-footer-qr img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 0.3125rem;
  border: 1px solid #d8d3d4;
  border-radius: 6px;
  background: #fffdfa;
  object-fit: contain;
}

.global-footer-qr figcaption {
  color: #514d52;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.global-footer-legal {
  display: grid;
  margin-top: 1.625rem;
  padding-top: 1.375rem;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2rem;
  row-gap: 0.5rem;
  align-items: center;
  border-top: 1px solid #d8d3d4;
}

.global-footer-legal p {
  margin: 0;
  color: #514d52;
  font-size: 0.875rem;
  line-height: 1.75;
  white-space: nowrap;
}

.global-footer-legal a {
  color: inherit;
  text-decoration: none;
}

.global-footer-legal a:hover,
.global-footer-legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.global-footer-legal p:first-child {
  grid-column: 1 / -1;
}

.global-footer-legal p:nth-child(3) {
  text-align: right;
}

@media (max-width: 1280px) {
  .global-footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.125rem 2.625rem;
  }

  .global-footer-brand {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 2.125rem;
  }

  .global-footer-brand img {
    margin-bottom: 0;
  }

  .global-footer-brand p {
    min-width: 0;
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .global-site-footer {
    padding: 2rem 0 5.25rem;
  }

  .global-footer-frame {
    width: calc(100% - 28px);
  }

  .global-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.625rem 1rem;
  }

  .global-footer-brand {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.875rem;
  }

  .global-footer-brand img {
    width: 128px;
  }

  .global-footer-nav {
    min-width: 0;
  }

  .global-footer-contact {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 0.625rem;
    row-gap: 0.625rem;
  }

  .global-footer-contact h2,
  .global-footer-contact-address,
  .global-footer-resources {
    grid-column: 1 / -1;
  }

  .global-footer-contact-phone,
  .global-footer-contact-time {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .global-footer-contact-time {
    white-space: nowrap;
  }

  .global-footer-resources {
    flex-wrap: wrap;
  }

  .global-footer-legal {
    grid-template-columns: 1fr;
    row-gap: 0.375rem;
  }

  .global-footer-legal p,
  .global-footer-legal p:nth-child(3) {
    white-space: normal;
    text-align: left;
  }
}
