html[data-language-ready="false"] body {
  visibility: hidden;
}

.language-switcher {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(0, 71, 62, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.language-switcher__button {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.language-switcher__button + .language-switcher__button {
  border-left: 1px solid rgba(255, 255, 255, 0.46);
}

.language-switcher__button[aria-pressed="true"] {
  color: #00473e;
  background: #fff;
}

.language-switcher__button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.language-switcher__button[aria-pressed="true"]:hover {
  background: #fff;
}

.language-switcher__button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.language-switcher__status,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 767px) {
  .header {
    padding-top: 52px;
  }

  .language-switcher {
    right: 4px;
  }
}

@media screen and (max-width: 340px) {
  .header .container {
    gap: 18px;
  }

  .header nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .header nav ul li {
    text-align: center;
  }
}

@media screen and (min-width: 375px) and (max-width: 767px) {
  .header {
    padding-top: 16px;
  }

  .language-switcher {
    right: 0;
  }

  .language-switcher__button {
    min-width: 26px;
    padding: 0 4px;
    font-size: 10px;
  }
}

html[lang="zh-Hant"] body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Manrope, sans-serif;
}

html[lang="zh-Hans"] body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Manrope, sans-serif;
}

html[lang="zh-Hant"] .terms section div.container h2,
html[lang="zh-Hans"] .terms section div.container h2,
html[lang="zh-Hant"] .footer .docs,
html[lang="zh-Hans"] .footer .docs,
html[lang="zh-Hant"] .footer nav,
html[lang="zh-Hans"] .footer nav {
  letter-spacing: 0;
}

@media screen and (min-width: 768px) {
  .language-switcher {
    top: 18px;
    right: 24px;
  }

  .language-switcher__button {
    min-width: 31px;
    min-height: 30px;
    font-size: 12px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1022px) {
  .header nav {
    padding-right: 120px;
  }
}
