:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #35392e;
  background: #f6f4ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --olive: #555d46;
  --border: #dcded1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  touch-action: manipulation;
}

a:hover {
  color: var(--olive);
}

a:focus-visible {
  outline: 2px solid #826233;
  outline-offset: 5px;
}

::selection {
  color: #f6f4ed;
  background: var(--olive);
}

.page-width {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: #35392e;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.language-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 1px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #606455;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: #35392e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.language-switch a:hover {
  color: var(--olive);
  background: #eeeee4;
}

.language-switch a:lang(zh) {
  padding-inline: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

.language-switch > span {
  color: #939888;
}

.wordmark {
  display: grid;
  gap: 7px;
  text-decoration: none;
}

.wordmark > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.wordmark small {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}

.legal-main {
  max-width: 960px;
  padding-block: 76px 80px;
}

.eyebrow {
  margin: 0;
  color: var(--olive);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.7;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin-block: 22px 40px;
  font-size: clamp(48px, 8vw, 82px);
  letter-spacing: -3px;
  line-height: 1.1;
}

h2 {
  margin-block: 16px 24px;
  font-size: clamp(24px, 3vw, 31px);
  letter-spacing: -0.7px;
  line-height: 1.25;
}

p,
address,
dl {
  font-size: 14px;
  line-height: 1.85;
}

.draft-notice {
  padding: 26px 30px;
  border-left: 3px solid #8a6732;
  background: #eee8d9;
}

.draft-label {
  margin-bottom: 8px;
  color: #664b25;
  font-size: 14px;
  font-weight: 700;
}

.draft-notice p:last-child {
  max-width: 76ch;
  margin-bottom: 0;
}

.legal-details {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-block: 52px;
}

address {
  display: grid;
  font-style: normal;
}

address strong {
  margin-bottom: 7px;
  font-weight: 500;
}

.detail-note {
  margin-block: 16px 0;
  color: #606455;
  font-size: 12px;
}

dl,
dd {
  margin: 0;
}

dl > div + div {
  margin-top: 18px;
}

dt {
  margin-bottom: 2px;
  color: #606455;
  font-size: 12px;
}

dd a {
  overflow-wrap: anywhere;
}

.completion-note {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.completion-note h2 {
  margin-block: 0 16px;
  font-size: 25px;
}

.completion-note p {
  max-width: 75ch;
  margin-bottom: 12px;
}

.completion-note p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--border);
  color: var(--olive);
  font-size: 12px;
}

.legal-footer a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

html:lang(zh) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

html:lang(zh) h1,
html:lang(zh) h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  letter-spacing: 0;
  line-height: 1.4;
}

html:lang(zh) h1 {
  font-size: clamp(38px, 7vw, 64px);
}

html:lang(zh) .eyebrow,
html:lang(zh) .wordmark small {
  letter-spacing: 0.08em;
}

html:lang(zh) .legal-main a {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .legal-header {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-block: 24px 18px;
  }

  .wordmark > span {
    font-size: 25px;
  }

  .legal-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px 16px;
  }

  .legal-main {
    padding-block: 46px 48px;
  }

  h1 {
    margin-block: 18px 30px;
    letter-spacing: -2px;
  }

  .draft-notice {
    padding: 20px;
  }

  .legal-details {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-block: 38px;
  }

  .legal-details section + section {
    padding-top: 30px;
    border-top: 1px solid var(--border);
  }

  .legal-footer {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}
