:root {
  --font-base: 0.9rem;
  --font-body: 1rem;
  --font-h1: 1.5rem;
  --font-h2: 1.2rem;
  --line-height-body: 2;
}

.about,
.about-terms {
  margin: 5rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about-terms {
  display: none;
  width: 90%;
  max-width: 1200px;
}

.back,
.terms-link {
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 4px;
  color: #555;
}

.terms-back {
  margin: 5rem auto;
}

.terms-title h2,
.brand-story h2,
.contact h2,
.terms-content h2 {
  font-size: var(--font-h2);
  color: #333;
  margin: 3rem 0 0.5rem;
  text-align: left;
}

.terms-content,
.brand-story p,
.contact p,
.terms-content p {
  font-size: var(--font-body);
  color: #555;
  line-height: var(--line-height-body);
  text-align: left;
  margin-bottom: 1.5rem;
}

.brand-story,
.team-title,
.team-more,
.contact {
  margin: auto auto 2rem auto;
  max-width: 75rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.brand-image {
  max-width: 62.5rem;
  margin: 5rem auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-image-img,
.banner-image {
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.banner-image {
  max-width: 75rem;
  border-radius: 8px;
}

.team-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 75rem;
  margin: 0 auto;
}

.team-title h1 {
  font-size: var(--font-h1);
  font-weight: bolder;
  color: #333;
  margin: 0;
}

.social-media-icons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.5rem;
}

.social-media-icons a {
  margin: 0 1rem;
  font-size: 2rem;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-media-icons img {
  height: 2rem;
}

#wechat-icon {
  font-size: 40px;
  cursor: pointer;
}

.wechat-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 8px;
  text-align: center;
}

.wechat-qr {
  min-height: 10rem;
  max-width: 1200px;
  margin: 0 auto;
}

.popup-text {
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media screen and (max-width: 1400px) {

  .brand-story,
  .team-title,
  .team-more,
  .contact {
    max-width: 85%;
  }
}

@media screen and (min-width: 768px) {

  .brand-story,
  .team-title,
  .contact,
  .team-more,
  .terms-content,
  .terms-title {
    padding: 2rem;
  }
}

@media screen and (max-width: 768px) {

  .brand-story,
  .team-title,
  .contact,
  .team-more,
  .terms-content,
  .terms-title {
    padding: 1.2rem;
  }

  .about-terms {
    margin: 5rem auto 10rem auto;
  }
}

@media screen and (max-width: 480px) {

  .brand-story h2,
  .team-title h2,
  .contact h2,
  .terms-content h2,
  .terms-title h2 {
    font-size: 1.2rem;
  }

  .brand-story p,
  .contact p,
  .terms-link,
  .terms-content p {
    font-size: 1rem;
  }
}

@media (prefers-color-scheme: dark) {

  .brand-story h2,
  .team-title h1,
  .contact h2,
  .terms-content h2,
  .terms-title h2 {
    color: #ddd;
  }

  .brand-story p,
  .contact p,
  .terms-link,
  .terms-content p {
    color: #bbb;
  }

  .brand-image-img,
  .social-media-icons img {
    filter: invert(0.5);
  }

  .social-media-icons img:hover {
    filter: invert(1);
  }

  .social-media-icons a {
    color: #aaa;
  }

  .social-media-icons a:hover {
    color: #fff;
  }
}