@font-face {
  font-family: Inter;
  src: url('assets/figma-home/fonts/Inter.ttf') format('truetype');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Itim;
  src: url('assets/fonts/Itim-Regular.ttf') format('truetype');
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1e1715;
  --muted: #746b66;
  --surface: #fff;
  --paper: #faf7ef;
  --line: #e9e2d6;
  --capsule: #fff39c;
  --focus: #925017;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f7f0e5;
  --muted: #b8aca0;
  --surface: #261f1c;
  --paper: #1d1816;
  --line: #443930;
  --focus: #fff39c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ink: #f7f0e5;
    --muted: #b8aca0;
    --surface: #261f1c;
    --paper: #1d1816;
    --line: #443930;
    --focus: #fff39c;
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
.site-frame { width: min(100%, 1120px); margin-inline: auto; padding-inline: 24px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.site-brand { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.site-language { min-height: 44px; min-width: 82px; border: 1px solid var(--line); border-radius: 13px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--surface); cursor: pointer; }
.site-footer { padding-block: 16px; color: var(--muted); font-size: 13px; min-height: 92px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 4px; }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer [aria-current='page'] { text-decoration: none; font-weight: 650; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.legal-page { background: var(--surface); }
.legal-main { padding-block: 44px 56px; }
.legal-heading { max-width: 820px; margin-bottom: 36px; }
.legal-heading h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -1px; line-height: 1.15; margin: 0 0 16px; }
.legal-intro { max-width: 64ch; font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.legal-date { font-size: 13px; color: var(--muted); margin: 0; }
.legal-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 48px; }
.legal-contents { align-self: start; position: sticky; top: 24px; font-size: 13px; }
.legal-contents summary { font-size: 14px; font-weight: 650; margin: 0 0 12px; pointer-events: none; list-style: none; }
.legal-contents summary::-webkit-details-marker { display: none; }
.legal-contents a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; line-height: 1.45; padding-block: 6px; }
.legal-contents a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-copy { min-width: 0; max-width: 72ch; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-copy section { scroll-margin-top: 24px; margin-bottom: 36px; }
.legal-copy section:last-child { margin-bottom: 0; }
.legal-copy h2 { font-size: 21px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; letter-spacing: -.25px; }
.legal-copy p { margin: 0 0 14px; }
.legal-copy a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.legal-copy ul { padding-inline-start: 22px; margin: 0 0 16px; }
.legal-copy li { margin-bottom: 12px; }
.legal-copy dl { margin: 0; }
.legal-copy dt { font-weight: 650; margin: 20px 0 6px; }
.legal-copy dt:first-child { margin-top: 0; }
.legal-copy dd { margin: 0 0 14px; }
.skip-link { position: absolute; left: 24px; top: -80px; z-index: 10; padding: 12px 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--focus); border-radius: 13px; }
.skip-link:focus { top: 12px; }
.language-document[data-language='zh'] { display: none; }
html[data-language='zh'] .language-document[data-language='en'] { display: none; }
html[data-language='zh'] .language-document[data-language='zh'] { display: block; }
.draft-notice { padding: 12px 24px; background: #fff39c; color: #1e1715; font-size: 13px; }
@media (max-width: 767px) {
  .site-frame { padding-inline: 20px; }
  .site-brand { font-size: 17px; }
  .legal-main { padding-block: 30px 40px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal-contents { position: static; border-block-end: 1px solid var(--line); padding-bottom: 18px; }
  .legal-contents summary { display: list-item; min-height: 44px; padding-block: 12px; margin: 0; cursor: pointer; pointer-events: auto; list-style: disclosure-closed; }
  .legal-contents[open] summary { list-style: disclosure-open; }
  .legal-contents summary::-webkit-details-marker { display: inline; }
  .legal-contents a { color: var(--ink); }
  .legal-heading { margin-bottom: 28px; }
  .legal-copy { line-height: 1.85; }
  .site-footer nav { column-gap: 20px; }
}
