:root {
  color: #0a0a0a;
  background: #070707;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --black: #070707;
  --ink: #0a0a0a;
  --paper: #f7f7f7;
  --muted-dark: #969696;
  --muted-light: #626262;
  --line-dark: rgb(255 255 255 / 18%);
  --line-light: rgb(10 10 10 / 17%);
  --page-gutter: clamp(20px, 5vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #ffffff;
  background: #292929;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.legal-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 92px;
  padding: 0 var(--page-gutter);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #ffffff;
}

.legal-wordmark {
  justify-self: start;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.1em;
}

.legal-nav,
.legal-actions {
  display: flex;
  align-items: center;
}

.legal-nav {
  gap: clamp(26px, 3vw, 50px);
  font-size: 0.86rem;
  font-weight: 620;
}

.legal-nav a,
.legal-language {
  position: relative;
  padding: 12px 0;
}

.legal-nav a::after,
.legal-language::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.legal-nav a:hover::after,
.legal-language:hover::after,
.legal-language[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.legal-actions {
  gap: 22px;
  justify-self: end;
}

.legal-language {
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.legal-store-badge img {
  width: auto;
  height: 42px;
}

.legal-hero {
  position: relative;
  display: flex;
  min-height: clamp(650px, 74svh, 820px);
  padding: 160px var(--page-gutter) 92px;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 38%, #121212 0%, var(--black) 46%),
    var(--black);
}

.legal-hero__orbit,
.legal-hero__orbit::before {
  position: absolute;
  z-index: 0;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 50%;
  content: "";
}

.legal-hero__orbit {
  top: -82%;
  right: -16%;
  width: min(108vw, 1520px);
  animation: orbit-arrive 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.legal-hero__orbit::before {
  top: 42%;
  left: 24%;
  width: 72%;
}

.legal-hero__node {
  position: absolute;
  top: 64%;
  left: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 5%);
}

@keyframes orbit-arrive {
  from {
    opacity: 0;
    transform: scale(0.84) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 22px;
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(4.4rem, 9.6vw, 10.5rem);
  font-weight: 680;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.support-page .legal-hero h1 {
  max-width: 900px;
  font-size: clamp(4rem, 8.2vw, 9rem);
  line-height: 0.96;
}

.legal-hero__lede {
  max-width: 720px;
  margin: clamp(30px, 4vw, 52px) 0 0;
  color: #b5b5b5;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.78;
}

.legal-hero__meta {
  display: block;
  margin-top: 26px;
  color: #777777;
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.08em;
}

.legal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 34px;
}

.legal-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 6px;
  color: #e5e5e5;
  font-size: 0.9rem;
  font-weight: 620;
  border-bottom: 1px solid rgb(255 255 255 / 42%);
}

.legal-action span:last-child {
  transition: transform 240ms ease;
}

.legal-action:hover span:last-child {
  transform: translateX(5px);
}

.legal-scroll-cue {
  position: absolute;
  right: var(--page-gutter);
  bottom: 54px;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: #858585;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.legal-scroll-cue::after {
  width: 1px;
  height: 58px;
  content: "";
  background: linear-gradient(#777777, transparent);
}

.legal-reading {
  position: relative;
  padding: clamp(82px, 10vw, 150px) var(--page-gutter) clamp(100px, 12vw, 180px);
  color: var(--ink);
  background: var(--paper);
}

.legal-reading__layout {
  display: grid;
  width: min(100%, 1400px);
  margin: 0 auto;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: clamp(56px, 8vw, 140px);
  align-items: start;
}

.chapter-index {
  position: sticky;
  top: 42px;
  display: grid;
  border-top: 1px solid var(--line-light);
}

.chapter-index a {
  display: grid;
  min-height: 62px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #777777;
  font-size: 0.78rem;
  transition: color 220ms ease, padding-left 220ms ease;
}

.chapter-index a:hover,
.chapter-index a[data-current="true"],
html:not([data-legal-motion="ready"]) .chapter-index a:first-child {
  padding-left: 0;
  color: var(--ink);
}

.chapter-index a[data-current="true"] {
  box-shadow: inset 2px 0 0 var(--ink);
  padding-left: 10px;
}

.chapter-index__number,
.section-number {
  font-variant-numeric: tabular-nums;
}

.chapter-index__number {
  font-size: 1rem;
}

.policy-content,
.support-content {
  min-width: 0;
}

.policy-section,
.support-topic,
.faq-section {
  scroll-margin-top: 30px;
}

.policy-section {
  padding: 0 0 clamp(74px, 8vw, 116px);
}

.policy-section + .policy-section {
  padding-top: clamp(58px, 7vw, 96px);
  border-top: 1px solid var(--line-light);
}

.policy-section__heading {
  display: grid;
  margin-bottom: 36px;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
}

.section-number {
  color: #8a8a8a;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  font-weight: 420;
  letter-spacing: -0.06em;
}

.policy-section h2,
.support-topic h2,
.faq-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.policy-section__body {
  max-width: 850px;
  margin-left: 96px;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.88;
}

.policy-section__body p {
  margin: 0;
}

.policy-section__body p + p {
  margin-top: 18px;
}

.policy-section__body ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.25em;
}

.policy-section__body a,
.legal-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-note {
  max-width: 850px;
  margin: 0 0 0 96px;
  padding-top: 32px;
  color: #777777;
  font-size: 0.82rem;
  line-height: 1.75;
  border-top: 1px solid var(--line-light);
}

.support-topic {
  display: grid;
  min-height: 170px;
  padding: 34px 0;
  border-top: 1px solid var(--line-light);
  grid-template-columns: 96px minmax(180px, 0.55fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.support-topic:last-of-type {
  border-bottom: 1px solid var(--line-light);
}

.support-topic p {
  max-width: 640px;
  margin: 4px 0 0;
  color: var(--muted-light);
  line-height: 1.8;
}

.support-topic > div,
.support-topic > p {
  grid-column: 3;
}

.support-email {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  padding-bottom: 4px;
  color: var(--ink);
  font-weight: 650;
  border-bottom: 1px solid var(--line-light);
}

.faq-section {
  padding-top: clamp(86px, 10vw, 140px);
}

.faq-heading {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
}

.faq-list {
  border-top: 1px solid var(--line-light);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
  scroll-margin-top: 24px;
}

.faq-item summary {
  display: grid;
  min-height: 116px;
  padding: 26px 0;
  grid-template-columns: 96px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 590;
  line-height: 1.35;
}

.faq-toggle {
  position: relative;
  width: 22px;
  height: 22px;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  max-width: 780px;
  margin: -6px 54px 0 96px;
  padding: 0 0 34px;
  color: var(--muted-light);
  line-height: 1.82;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================================
   滚动动效
   仅在 legal-motion.js 判定可以播放动效后（html[data-legal-motion="ready"]）
   才应用初始隐藏状态，脚本失效或用户关闭动效时页面保持完整可读。
   ========================================================================= */

.legal-hero {
  --hero-scroll: 0;
}

.legal-hero__inner {
  transform: translate3d(0, calc(var(--hero-scroll) * -34px), 0);
  opacity: calc(1 - var(--hero-scroll) * 0.6);
}

/* 首屏标题按行从遮罩里升起 */
html[data-legal-motion="ready"] .legal-hero h1 {
  opacity: 0;
}

html[data-legal-motion="ready"] .legal-hero h1.legal-title {
  opacity: 1;
}

.legal-title-line {
  display: block;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  overflow: hidden;
}

.legal-title-line__text {
  display: block;
  opacity: 0;
  filter: blur(9px);
  transform: translate3d(0, 108%, 0) skewY(2.4deg);
  transform-origin: left bottom;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 940ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--line-index, 0) * 95ms);
}

.legal-title[data-motion-visible="true"] .legal-title-line__text {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) skewY(0);
}

/* 正文标题随滚动逐词点亮 */
/* 脚本尚未把标题拆成词之前先不绘制，拆完加上 .legal-highlight 即可显示。
   注意用 :not() 而不是另写一条恢复规则，否则会被这条更高的特异性压住。 */
html[data-legal-motion="ready"] .policy-section h2:not(.legal-highlight),
html[data-legal-motion="ready"] .support-topic h2:not(.legal-highlight),
html[data-legal-motion="ready"] .faq-section h2:not(.legal-highlight) {
  visibility: hidden;
}

.legal-highlight__word {
  --word-reveal: 0;
  display: inline-block;
  opacity: calc(0.2 + var(--word-reveal) * 0.8);
  filter: blur(calc((1 - var(--word-reveal)) * 2.4px));
  transform: translate3d(0, calc((1 - var(--word-reveal)) * 0.13em), 0);
}

/* 标题字数多，will-change 只在标题处于滚动区间时提升 */
.legal-highlight[data-animating="true"] .legal-highlight__word {
  will-change: opacity, filter, transform;
}

/* 章节编号随阅读位置由浅转深 */
.policy-section,
.support-topic,
.faq-section {
  --number-lit: 1;
}

.section-number {
  color: #c6c6c6;
  color: color-mix(in srgb, #0a0a0a calc(var(--number-lit) * 58%), #c8c8c8);
  transition: color 320ms linear;
}

/* 进入视口后的通用揭示 */
html[data-legal-motion="ready"] [data-motion-visible="false"]:not(.legal-title) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

[data-motion-visible]:not(.legal-title) {
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 860ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}

.legal-footer {
  position: relative;
  isolation: isolate;
}

.legal-footer > *,
.legal-footer__meta {
  position: relative;
  z-index: 1;
}

.legal-footer {
  display: grid;
  padding: 72px var(--page-gutter) 44px;
  color: #ffffff;
  background: var(--black);
  grid-template-columns: 1fr auto;
  gap: 54px;
  align-items: end;
}

.legal-footer__wordmark {
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  font-weight: 820;
  letter-spacing: -0.06em;
}

.legal-footer p {
  margin: 12px 0 0;
  color: var(--muted-dark);
  font-size: 0.86rem;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #bcbcbc;
  font-size: 0.78rem;
}

.legal-footer__meta {
  grid-column: 1 / -1;
  padding-top: 30px;
  color: #5d5d5d;
  font-size: 0.7rem;
  border-top: 1px solid #232323;
}

@media (max-width: 840px) {
  .legal-header {
    height: 76px;
    grid-template-columns: 1fr auto;
  }

  .legal-nav {
    display: none;
  }

  .legal-actions {
    gap: 14px;
  }

  .legal-store-badge img {
    height: 36px;
  }

  .legal-hero {
    min-height: 690px;
    padding-top: 132px;
  }

  .legal-hero h1,
  .support-page .legal-hero h1 {
    font-size: clamp(3.6rem, 16vw, 6.8rem);
  }

  .legal-hero__orbit {
    top: -15%;
    right: -126%;
    width: 194vw;
  }

  .legal-scroll-cue {
    display: none;
  }

  .legal-reading__layout {
    grid-template-columns: 1fr;
    gap: 66px;
  }

  .chapter-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid var(--line-light);
  }

  .chapter-index a {
    padding: 0 12px;
    border-right: 1px solid var(--line-light);
  }

  .policy-section__heading,
  .faq-heading {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .policy-section__body,
  .policy-note,
  .faq-answer {
    margin-left: 64px;
  }

  .support-topic {
    min-height: 0;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .support-topic > div,
  .support-topic > p {
    grid-column: 2;
  }

  .faq-item summary {
    min-height: 100px;
    grid-template-columns: 64px minmax(0, 1fr) 24px;
  }
}

@media (max-width: 520px) {
  .legal-wordmark {
    font-size: 1.35rem;
  }

  .legal-store-badge img {
    height: 34px;
  }

  .legal-hero {
    min-height: 640px;
    padding-bottom: 76px;
  }

  .legal-hero h1,
  .support-page .legal-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.2rem);
  }

  .support-page .legal-hero h1 {
    font-size: clamp(3.15rem, 14.2vw, 4.8rem);
  }

  .legal-hero__lede {
    font-size: 0.98rem;
  }

  .legal-hero__actions {
    gap: 20px;
  }

  .legal-reading {
    padding-top: 72px;
  }

  .chapter-index {
    grid-template-columns: 1fr;
  }

  .policy-section__heading,
  .faq-heading,
  .support-topic,
  .faq-item summary {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .policy-section__body,
  .policy-note,
  .faq-answer {
    margin-right: 0;
    margin-left: 44px;
  }

  .section-number {
    font-size: 2rem;
  }

  .policy-section h2,
  .support-topic h2,
  .faq-section h2 {
    font-size: 1.65rem;
  }

  .support-topic > div,
  .support-topic > p {
    grid-column: 2;
  }

  .support-topic p {
    font-size: 0.95rem;
  }

  .faq-item summary {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 10px;
  }

  .faq-item h3 {
    font-size: 1.08rem;
  }

  .legal-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .legal-hero h1,
  .legal-title-line__text,
  .legal-highlight__word,
  [data-motion-visible] {
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .legal-hero__inner {
    opacity: 1;
    transform: none;
  }



  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
