:root {
  color-scheme: light;
  --page: #ffffff;
  --surface-subtle: #f6f7f8;
  --text: #34383e;
  --heading: #191d22;
  --muted: #626a73;
  --border: #e2e5e9;
  --accent: #245bb3;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-block: 24px; overflow-y: scroll; scrollbar-gutter: stable; }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; }
}
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin-inline: auto;
  padding: 0 32px;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.skip-link { position: absolute; left: 20px; top: 12px; z-index: 10; padding: 8px 16px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Page shell: the navigation stays available beside a readable document. */
.header-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding-block: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.brand-link { display: flex; align-items: center; min-height: 44px; color: var(--heading); font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.4px; text-decoration: none; }
.lang-link { flex-shrink: 0; min-height: 44px; min-width: 64px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--page); color: var(--text); font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.lang-link:hover { border-color: var(--muted); }
.site-navigation { grid-column: 1; grid-row: 2; position: sticky; top: 24px; max-height: calc(100vh - 48px); min-width: 0; overflow-y: auto; scrollbar-width: thin; }
.site-navigation > summary { display: none; }
.topnav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 4px 0; }
.topnav a { display: block; min-width: 0; padding: 11px 12px; border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-decoration: none; }
.topnav a:hover { color: var(--heading); background: var(--surface-subtle); }
.topnav a.active { color: var(--heading); background: var(--surface-subtle); border-left-color: var(--heading); font-weight: 600; }
.document { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; max-width: 880px; padding-bottom: 16px; container: document / inline-size; }
.footer { grid-column: 2; width: 100%; max-width: 880px; padding-block: 24px 36px; margin-top: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.85; text-align: center; }
.footer a { color: inherit; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 16px; margin-bottom: 4px; }
.footer-company { min-width: 0; }
.footer-copyright { white-space: nowrap; }

/* Type scale and spacing are shared by all documents. */
h1, h2, h3, h4 { color: var(--heading); font-weight: 650; overflow-wrap: break-word; }
h1 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; letter-spacing: -.02em; }
h2 { margin: 40px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 21px; line-height: 1.5; }
h3 { margin: 28px 0 12px; font-size: 18px; line-height: 1.6; }
h4 { margin: 24px 0 10px; font-size: 16px; line-height: 1.6; }
p { margin: 0 0 18px; }
strong { color: var(--heading); font-weight: 600; }
ul, ol { margin: 0 0 20px; padding-left: 1.5em; }
li { margin-bottom: 8px; padding-left: 2px; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.meta, .subtitle { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.intro { margin-bottom: 24px; }
.tip, .note { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--border); border-left: 3px solid #8a929b; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-subtle); font-size: 15px; }
.toc { margin: 28px 0; padding: 20px 24px; background: var(--surface-subtle); border-radius: var(--radius); font-size: 14px; }
.toc-title { margin-bottom: 10px; font-weight: 600; color: var(--heading); }
.toc a { display: block; padding: 8px 0; line-height: 1.65; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.card, .item { margin-bottom: 18px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.card h3, .item-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--heading); line-height: 1.6; }
.card p { font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.card .num, .item-num { flex-shrink: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.item-title { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.row { display: grid; grid-template-columns: minmax(80px, 22%) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; line-height: 1.8; }
.row:last-child { margin-bottom: 0; }
.label { color: var(--muted); font-size: 14px; }
.value { min-width: 0; font-size: 15px; }
.disclosure-note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Wide tables scroll locally; existing mobile cards take over when space is limited. */
.table-wrap { max-width: 100%; margin: 20px 0 28px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); scrollbar-width: thin; }
table { width: 100%; margin: 20px 0 28px; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
th, td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-subtle); color: var(--heading); font-weight: 600; }
.table-wrap table { min-width: 640px; margin: 0; border-style: hidden; }
.information-list .table-wrap table { min-width: 840px; }
.third-party-list .table-wrap table { min-width: 880px; table-layout: fixed; font-size: 13px; }
.third-party-list .card-list .item-title { font-size: 15px; }
.third-party-list .card-list .label { font-size: 13px; }
.third-party-list .card-list .value { font-size: 14px; }
.third-party-list .sdk-identity { width: 15%; }
.third-party-list .sdk-detail { width: 20%; }
.third-party-list .sdk-policy { width: 10%; }
td.num { width: 44px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.table-hint { margin: 0 0 -12px; color: var(--muted); font-size: 13px; }
.card-list { display: none; }
@container document (max-width: 800px) {
  .information-list .table-wrap, .third-party-list .table-wrap { display: none; }
  .information-list .card-list, .third-party-list .card-list { display: block; }
}

/* The landing page is a compact document directory. */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.doc-item { min-width: 0; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.doc-item a { display: block; height: 100%; padding: 22px 0; color: var(--heading); text-decoration: none; }
.doc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 17px; font-weight: 600; line-height: 1.6; }
.doc-title .arrow { flex-shrink: 0; color: var(--muted); font-size: 20px; font-weight: 400; }
.doc-desc { color: var(--muted); font-size: 14px; line-height: 1.8; }
.doc-item a:hover .doc-title { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
@container document (max-width: 560px) { .doc-list { grid-template-columns: minmax(0, 1fr); } }

[data-lang="zh"] .en-only { display: none !important; }
[data-lang="en"] .zh-only { display: none !important; }

@media (max-width: 959px) {
  .wrap { display: block; max-width: 860px; padding-inline: 24px; }
  .header-row { padding-block: 18px; margin-bottom: 16px; }
  .site-navigation { position: static; max-height: none; margin-bottom: 28px; overflow: visible; border: 1px solid var(--border); border-radius: var(--radius); }
  .site-navigation > summary { display: list-item; padding: 12px 16px; color: var(--heading); font-size: 14px; line-height: 1.6; cursor: pointer; }
  .site-navigation[open] > summary { border-bottom: 1px solid var(--border); }
  .topnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .topnav a { padding: 10px 12px; }
  .document { max-width: none; }
  .footer { margin-top: 24px; }
  .information-list .table-wrap, .third-party-list .table-wrap { display: none; }
  .information-list .card-list, .third-party-list .card-list { display: block; }
}
@media (max-width: 599px) {
  .wrap { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  .header-row { padding-block: 16px; }
  .site-navigation { margin-bottom: 24px; }
  .topnav { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 24px; }
  h2 { margin-top: 32px; padding-top: 20px; font-size: 20px; }
  h3 { font-size: 17px; }
  .meta, .subtitle { margin-bottom: 24px; font-size: 13px; }
  .tip, .note, .toc, .card, .item { padding: 16px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 14px; }
  .doc-list { grid-template-columns: minmax(0, 1fr); }
  .doc-item a { padding-block: 20px; }
  .footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
@media print {
  .wrap { display: block; max-width: none; padding: 0; }
  .site-navigation, .lang-link, .skip-link { display: none; }
  .header-row { margin-bottom: 24px; }
  .document { max-width: none; container-type: normal; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0 !important; }
  h1, h2, h3, h4 { break-after: avoid; }
  tr, .card, .item { break-inside: avoid; }
}
