/* ==========================================================
   MovieBox — official website
   ========================================================== */
:root {
  --bg: #081a42;
  --bg-rgb: 8, 26, 66;
  --surface: #0f2454;
  --surface-rgb: 15, 36, 84;
  --surface-2: #152d64;
  --fg-rgb: 255, 255, 255;
  --line: rgba(var(--fg-rgb), .09);
  --line-2: rgba(var(--fg-rgb), .16);
  --text: #f2f7ff;
  --body: #c9d6f2;
  --muted: #97a9d0;
  --dim: #6c7fa8;
  --a1: 64, 214, 255;
  --a2: 76, 125, 255;
  --a3: 94, 240, 192;
  --accent-ink: #5ad8ff;
  --link: #6fdcff;
  --link-rgb: 111, 220, 255;
  --on-grad: #04162e;
  --grad: linear-gradient(115deg, #5ef0c0 0%, #40d6ff 45%, #4c7dff 100%);
  --grad-text: var(--grad);
  --grad-soft: linear-gradient(135deg, rgba(var(--a1), .16), rgba(var(--a2), .16));
  --card-bg: linear-gradient(180deg, rgba(var(--fg-rgb), .04), rgba(var(--fg-rgb), .012));
  --card-shadow: none;
  --shadow-phone: 0 50px 90px -40px rgba(1, 6, 20, .85), 0 0 0 1px rgba(var(--fg-rgb), .14);
  --shadow-stats: 0 30px 60px -30px rgba(1, 6, 20, .7);
  --shadow-frame-hover: 0 60px 100px -40px rgba(1, 6, 20, .9), 0 0 0 1px rgba(var(--a1), .4);
  --side-filter: brightness(.86) saturate(.95);
  --grid-alpha: .045;
  --beam-1: .30;
  --beam-2: .26;
  --glow-1: .16;
  --glow-2: .26;
  --glow-3: .12;
  --footer-bg: #061433;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(var(--a1), .35); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 10px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 40% at 8% -6%, rgba(var(--a1), var(--glow-1)), transparent 65%),
    radial-gradient(50% 45% at 96% 4%, rgba(var(--a2), var(--glow-2)), transparent 65%),
    radial-gradient(60% 40% at 50% 112%, rgba(var(--a3), var(--glow-3)), transparent 65%);
}

/* language-only blocks */
html[data-lang="en"] [data-only="zh"],
html[data-lang="zh"] [data-only="en"] { display: none !important; }

h1, h2, h3 { text-wrap: balance; }
.nw { display: inline-block; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.scrolled {
  background: rgba(var(--bg-rgb), .74);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-color: var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(var(--a1), .5); }
.brand b { font-weight: 800; }
.brand b span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a.nav-link {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--text); background: rgba(var(--fg-rgb), .06); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; margin-left: 8px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(var(--fg-rgb), .03);
  font-size: 14px; font-weight: 600; color: var(--body);
  transition: border-color .2s, background .2s, color .2s;
}
.lang-btn:hover { border-color: rgba(var(--a1), .45); background: rgba(var(--a1), .08); color: var(--text); }
.lang-btn svg { color: var(--accent-ink); }
/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 14px;
  font-weight: 600; font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  color: var(--on-grad); background: var(--grad);
  box-shadow: 0 16px 36px -16px rgba(var(--a1), .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(var(--a1), .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(var(--a1), .45); background: rgba(var(--a1), .07); }
.btn-ghost svg { color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: -72px; height: 820px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), var(--grid-alpha)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb), var(--grid-alpha)) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 75%);
}
.hero-copy { max-width: 860px; margin: 0 auto; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .04);
  font-size: 13.5px; font-weight: 500; color: var(--body);
}
.tag-pill .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.02; letter-spacing: -.04em; font-weight: 800;
  margin: 26px 0 24px;
}
html[data-lang="zh"] .hero h1 { letter-spacing: -.01em; line-height: 1.16; }
.hero .lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 660px; margin: 0 auto 36px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.stage { position: relative; height: 580px; max-width: 1000px; margin: 72px auto 0; }
.beam {
  position: absolute; left: 50%; top: -120px; width: 100%; max-width: 980px; height: 720px;
  transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(40% 32% at 50% 18%, rgba(var(--a1), var(--beam-1)), transparent 70%),
    radial-gradient(55% 55% at 50% 50%, rgba(var(--a2), var(--beam-2)), transparent 70%);
  filter: blur(24px);
}
.beam::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--a1), .16), rgba(var(--a2), .04) 70%, transparent);
  clip-path: polygon(44% 0, 56% 0, 96% 100%, 4% 100%);
}
.phone {
  position: absolute; margin: 0;
  border-radius: 34px; overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1280; }
.phone-c { width: 300px; left: 50%; top: 0; z-index: 3; transform: translateX(-50%); }
.phone-l, .phone-r { width: 250px; top: 78px; z-index: 2; }
.phone-l { left: calc(50% - 334px); transform: rotate(-9deg); animation: floatL 7s ease-in-out infinite; }
.phone-r { left: calc(50% + 84px); transform: rotate(9deg); animation: floatR 7s ease-in-out infinite; animation-delay: -3.5s; }
.phone-l img, .phone-r img { filter: var(--side-filter); }
@keyframes floatL { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-12px); } }
@keyframes floatR { 0%, 100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-12px); } }
.stage::after {
  content: ""; position: absolute; left: -40px; right: -40px; bottom: -2px; height: 320px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0), rgba(var(--bg-rgb), .85) 62%, var(--bg) 80%);
}

/* stats bar */
.stats {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 980px; margin: -96px auto 0;
  border: 1px solid var(--line-2); border-radius: 24px;
  background: rgba(var(--surface-rgb), .78);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-stats);
  list-style: none;
}
.stats li { padding: 26px 16px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stats span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 128px 0; scroll-margin-top: 72px; }
.sec-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
html[data-lang="zh"] .eyebrow { letter-spacing: .22em; }
.sec-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
html[data-lang="zh"] .sec-head h2 { letter-spacing: 0; line-height: 1.25; }
.sec-head p { color: var(--muted); font-size: 17.5px; margin: 0; }

/* features */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fcard {
  position: relative; overflow: hidden;
  padding: 30px 26px 28px; border-radius: 22px;
  background: var(--card-bg); box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
  transition: transform .35s, border-color .35s, background .35s;
}
.fcard::before {
  content: ""; position: absolute; width: 220px; height: 220px; left: -60px; top: -110px;
  background: radial-gradient(closest-side, rgba(var(--a1), .18), transparent);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.fcard:hover { transform: translateY(-4px); border-color: rgba(var(--a1), .3); }
.fcard:hover::before { opacity: 1; }
.ficon {
  position: relative;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(var(--fg-rgb), .1);
  color: var(--accent-ink); margin-bottom: 22px;
}
.fcard h3 { position: relative; font-size: 18.5px; margin: 0 0 8px; font-weight: 700; letter-spacing: -.01em; }
.fcard p { position: relative; margin: 0; color: var(--muted); font-size: 15px; }

/* inside the app (zig-zag showcase) */
.show { display: grid; gap: 104px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.row.flip .row-visual { order: 2; }
.row-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.row-visual::before {
  content: ""; position: absolute; width: 520px; height: 520px; max-width: 120%; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--a2), .3), rgba(var(--a3), .1) 55%, transparent);
  pointer-events: none;
}
.row:nth-child(even) .row-visual::before { background: radial-gradient(closest-side, rgba(var(--a1), .24), rgba(var(--a3), .1) 55%, transparent); }
.frame {
  position: relative; display: block; width: 290px; cursor: zoom-in;
  border-radius: 32px; overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-phone);
  transition: transform .4s, box-shadow .4s;
}
.frame img { width: 100%; height: auto; aspect-ratio: 720 / 1280; }
.frame:hover { transform: translateY(-8px); box-shadow: var(--shadow-frame-hover); }
.frame .zoom {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 15, 40, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s;
}
.frame:hover .zoom, .frame:focus-visible .zoom { opacity: 1; transform: none; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-lang="zh"] .kicker { letter-spacing: .2em; }
.row-copy h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.14; letter-spacing: -.025em; font-weight: 800; margin: 0 0 18px; }
html[data-lang="zh"] .row-copy h3 { letter-spacing: 0; line-height: 1.3; }
.row-copy p { color: var(--muted); font-size: 17px; margin: 0; max-width: 500px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: var(--body); font-weight: 500; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  background: rgba(var(--fg-rgb), .04); border: 1px solid var(--line-2); color: var(--body);
}
.chip svg { color: var(--accent-ink); }
.chip.on { background: var(--grad); color: var(--on-grad); border-color: transparent; }
.hint { text-align: center; color: var(--dim); font-size: 13.5px; margin: 56px 0 0; }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 46px; left: 17%; right: 17%;
  border-top: 2px dashed rgba(var(--fg-rgb), .14);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 28px;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: 0 20px 40px -20px rgba(var(--a1), .5);
}
.step-num span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 21px; margin: 0 0 8px; font-weight: 700; }
.step p { color: var(--muted); margin: 0 auto; max-width: 300px; font-size: 15.5px; }

/* account & Google sign-in */
.acc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.acc .sec-head { text-align: left; margin: 0 0 32px; position: sticky; top: 110px; }
.acc .sec-head .btn { margin-top: 32px; }
.acc-list {
  list-style: none;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--card-bg); box-shadow: var(--card-shadow);
}
.acc-list li { display: flex; gap: 20px; padding: 30px 32px; }
.acc-list li + li { border-top: 1px solid var(--line); }
.acc-list .ficon { flex: none; margin: 0; }
.acc-list h3 { font-size: 18.5px; margin: 0 0 6px; font-weight: 700; }
.acc-list p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; cursor: pointer; list-style: none;
  font-size: 18.5px; font-weight: 650; color: var(--text);
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-ink); }
.pm {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: transform .3s, background .3s, border-color .3s;
}
.pm::before, .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .pm { transform: rotate(45deg); background: var(--grad); border-color: transparent; color: var(--on-grad); }
.qa p { margin: 0; padding: 0 56px 28px 4px; color: var(--muted); font-size: 16px; }
.qa a, .acc-list a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--link-rgb), .4); }

/* closing CTA */
.closing { padding: 0 0 128px; }
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 34px; padding: 88px 40px; text-align: center;
  background:
    radial-gradient(55% 90% at 50% 0%, rgba(var(--a1), .22), transparent 62%),
    radial-gradient(45% 90% at 100% 100%, rgba(var(--a2), .3), transparent 62%),
    radial-gradient(40% 80% at 0% 100%, rgba(var(--a3), .16), transparent 62%),
    var(--surface);
  border: 1px solid var(--line-2);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; left: 28px; right: 28px; height: 10px;
  background: repeating-linear-gradient(90deg, rgba(var(--fg-rgb), .1) 0 16px, transparent 16px 32px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.cta-band::before { top: 22px; }
.cta-band::after { bottom: 22px; }
.cta-band img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 44px -14px rgba(var(--a1), .6), 0 0 0 1px rgba(255, 255, 255, .2); }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
html[data-lang="zh"] .cta-band h2 { letter-spacing: 0; }
.cta-band p { color: var(--body); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 64px 0 36px; color: var(--muted); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-brand p { margin: 16px 0 0; max-width: 320px; }
.foot-grid h4 { color: var(--text); font-size: 14px; margin: 0 0 16px; font-weight: 700; }
.foot-grid ul { list-style: none; display: grid; gap: 11px; }
.foot-grid a { transition: color .2s; }
.foot-grid a:hover { color: var(--accent-ink); }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--dim);
}
.foot-bottom nav { display: flex; gap: 20px; }
.foot-bottom a:hover { color: var(--accent-ink); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px 80px;
  background: rgba(3, 10, 28, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); width: auto; max-width: 100%; border-radius: 26px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(var(--a1), .2); border-color: rgba(var(--a1), .5); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Legal pages
   ========================================================== */
.legal-hero { padding: 56px 0 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.back-link:hover { color: var(--accent-ink); }
.legal-tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03);
}
.legal-tabs a { padding: 8px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.legal-tabs a:hover { color: var(--text); }
.legal-tabs a[aria-current="page"] { background: var(--grad); color: var(--on-grad); }
.legal-title { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 26px 0 0; }
html[data-lang="zh"] .legal-title { letter-spacing: 0; }

.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 120px; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 6px; }
.toc h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted); font-size: 14px; line-height: 1.45;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent-ink); }

.doc {
  border-radius: 28px; border: 1px solid var(--line-2);
  background: var(--card-bg); box-shadow: var(--card-shadow);
  padding: 48px 56px 56px;
}
.doc-info { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; margin: 0 0 40px; padding: 0 0 32px; border-bottom: 1px solid var(--line); list-style: none; }
.doc-info dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 4px; }
.doc-info dd { margin: 0; color: var(--text); font-weight: 600; font-size: 15px; }
.doc-info a { color: var(--link); }
.prose { color: var(--body); font-size: 16.5px; line-height: 1.8; }
.prose h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; color: var(--text); margin: 44px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--accent-ink); margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { list-style: none; margin: 0 0 16px; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.prose strong { color: var(--text); }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--link-rgb), .4); word-break: break-word; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .row { gap: 48px; }
  .legal-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .doc { padding: 40px 40px 48px; }
  .doc-info { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 920px) {
  .nav a.nav-link { display: none; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 36px; }
  .row.flip .row-visual { order: 0; }
  .row-copy { text-align: center; }
  .row-copy p { margin: 0 auto; }
  .ticks { justify-content: center; }
  .chips { justify-content: center; }
  .show { gap: 96px; }
  .acc { grid-template-columns: 1fr; gap: 0; }
  .acc .sec-head { position: static; text-align: center; margin: 0 auto 48px; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding: 96px 0; }
  .stage { height: 500px; }
  .phone-c { width: 250px; }
  .phone-l, .phone-r { width: 205px; top: 70px; }
  .phone-l { left: calc(50% - 262px); }
  .phone-r { left: calc(50% + 57px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .header .container { height: 64px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 42px; }
  html[data-lang="zh"] .hero h1 { font-size: 36px; }
  .cta .btn { width: 100%; }
  .stage { height: 420px; margin-top: 52px; }
  .phone { border-radius: 24px; }
  .phone-c { width: 210px; }
  .phone-l, .phone-r { width: 170px; top: 60px; }
  .phone-l { left: calc(50% - 212px); }
  .phone-r { left: calc(50% + 42px); }
  .stats { margin-top: -80px; border-radius: 20px; }
  .stats li { padding: 20px 10px; }
  .fgrid { grid-template-columns: 1fr; }
  .frame { width: 240px; border-radius: 26px; }
  .acc-list li { padding: 24px 20px; gap: 16px; }
  .qa summary { font-size: 16.5px; padding: 22px 2px; }
  .qa p { padding-right: 8px; }
  .cta-band { padding: 72px 22px; border-radius: 26px; }
  .cta-band p { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 72px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .legal-hero { padding: 36px 0 28px; }
  .doc { padding: 28px 20px 36px; border-radius: 22px; }
  .doc-info { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .prose { font-size: 16px; }
}
