:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: #20242c;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
}

.language-bar {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px
    max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid #e8eaf0;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-control {
  display: flex;
  width: min(100%, 760px);
  min-height: 40px;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-control label {
  color: #5f6571;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.select-wrap {
  position: relative;
  flex: 0 1 180px;
}

.select-wrap select {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 38px 0 13px;
  appearance: none;
  border: 1px solid #d8dbe3;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: #20242c;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
}

.select-wrap select:focus-visible {
  border-color: #536dfe;
  box-shadow: 0 0 0 3px rgb(83 109 254 / 16%);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #606775;
  border-bottom: 1.5px solid #606775;
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.page-shell {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 46px max(24px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.page-status {
  margin: 72px auto;
  color: #6c7280;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

.page-status.is-warning,
.page-status.is-error {
  margin: 0 0 28px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
}

.page-status.is-warning {
  border: 1px solid #f0dfb9;
  background: #fffaf0;
  color: #7b5a14;
}

.page-status.is-error {
  border: 1px solid #efc5c5;
  background: #fff5f5;
  color: #9c3030;
}

.legal-document h1 {
  margin: 0 0 44px;
  color: #171a21;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.legal-section + .legal-section {
  margin-top: 38px;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: #1d2129;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.legal-block {
  margin: 0 0 14px;
  color: #3e444f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin-top: 2px;
  padding-left: 1.5em;
}

.legal-list li {
  padding-left: 0.18em;
}

.legal-list li + li {
  margin-top: 7px;
}

.noscript-message {
  margin: 40px 24px;
  color: #9c3030;
  text-align: center;
}

[lang="zh-CN"] .legal-block,
[lang="ja-JP"] .legal-block,
[lang="ko-KR"] .legal-block {
  line-height: 1.85;
}

@media (max-width: 520px) {
  .language-bar {
    padding-bottom: 8px;
  }

  .language-control {
    justify-content: space-between;
  }

  .select-wrap {
    flex-basis: 164px;
  }

  .page-shell {
    padding-top: 34px;
  }

  .legal-document h1 {
    margin-bottom: 36px;
  }

  .legal-section + .legal-section {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
