:root {
  color-scheme: dark;
  --background: #0a0b0d;
  --surface: #14171a;
  --surface-strong: #1b1f23;
  --text: #f3f4f5;
  --secondary: #a6aaaf;
  --muted: #737980;
  --border: #2a2f34;
  --accent: #6fa7d8;
  --accent-soft: rgba(111, 167, 216, 0.13);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
}

body { min-height: 100dvh; }

a { color: inherit; }
button { font: inherit; }

.site-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 22px calc(52px + env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.app-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
}

.brand-name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 720;
}

.brand-detail {
  margin: 0;
  overflow: hidden;
  color: var(--secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.language-switcher button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--text);
}

.page-heading { padding: 44px 0 30px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
}

.lede {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.65;
}

.effective-date {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 30px;
  padding: 18px 19px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.contact-panel h2 { margin-bottom: 5px; }
.contact-panel p { margin: 0; }

.primary-link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--border));
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 680;
}

.content-section {
  padding: 24px 0 25px;
  border-top: 1px solid var(--border);
}

.content-section:first-child { border-top: 0; }

h2 {
  margin: 0 0 11px;
  color: var(--text);
  font-size: 17px;
  font-weight: 680;
}

h3 {
  margin: 20px 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 670;
}

p, li {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.7;
}

p { margin: 0; }
p + p { margin-top: 10px; }
ul { margin: 9px 0 0; padding-left: 21px; }
li + li { margin-top: 6px; }

.inline-link {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: var(--secondary); text-decoration: none; }

body [data-language] { display: none; }
html[data-language="en"] body [data-language="en"] { display: block; }
html[data-language="zh"] body [data-language="zh"] { display: block; }

@media (max-width: 560px) {
  .site-shell { padding-left: 17px; padding-right: 17px; }
  .site-header { gap: 10px; }
  .brand-detail { max-width: 150px; }
  .page-heading { padding: 34px 0 25px; }
  .contact-panel { align-items: stretch; flex-direction: column; }
  .primary-link { align-self: stretch; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-link, .language-switcher button { transition: background 140ms ease, border-color 140ms ease, color 140ms ease; }
}
