:root {
  --text: #222222;
  --muted: #636366;
  --tertiary: #a0a0a5;
  --bg: #f8f8f8;
  --card: #ffffff;
  --muted-bg: #f2f2f2;
  --brand: #1976d2;
  --separator: #e5e5ea;
  --soft: rgba(25, 118, 210, .08);
  --warning-bg: rgba(255, 159, 10, .12);
  --warning: #9a5a00;
  --radius: 12px;
  --shadow-e1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .04);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.58;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 760px;
  max-width: min(760px, 100vw);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}

p,
li,
.meta div,
.notice,
.card,
.contact-row,
td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-header {
  padding: 8px 0 10px;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 10px;
}

.lang-switch a {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--muted);
  font-size: 13px;
  line-height: 22px;
}

h1,
h2,
h3 {
  line-height: 1.32;
}

h1 {
  margin: 6px 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 500;
}

p {
  margin: 8px 0;
}

ul,
ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}

li {
  margin: 6px 0;
}

a {
  min-height: 44px;
  color: var(--brand);
  text-decoration: none;
}

.meta,
.card,
.notice {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-e1);
  padding: 16px;
  margin: 12px 0;
  overflow: hidden;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.meta div + div {
  margin-top: 4px;
}

.notice {
  background: var(--soft);
  box-shadow: none;
  color: #173b76;
}

.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.muted {
  color: var(--muted);
}

.table-wrap {
  margin: 12px 0;
  overflow-x: auto;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 640px;
  border: 0;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-e1);
  overflow: hidden;
}

.third-party-table {
  min-width: 1320px;
}

.personal-info-table {
  min-width: 1040px;
}

.retention-table {
  min-width: 840px;
}

.region-table {
  min-width: 780px;
}

.third-party-table th,
.third-party-table td {
  font-size: 14px;
}

th,
td {
  border-bottom: .5px solid var(--separator);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--muted-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

td {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

tr:last-child td {
  border-bottom: none;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  border-top: .5px solid var(--separator);
}

.contact-row:first-child {
  border-top: none;
}

.label {
  font-weight: 500;
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button.secondary {
  background: var(--muted-bg);
  color: var(--text);
}

.button:active,
a.card:active,
.contact-row:active {
  transform: scale(.98);
  opacity: .9;
}

.footer {
  color: var(--tertiary);
  font-size: 12px;
  text-align: center;
  padding: 24px 0 0;
}

@media (max-width: 640px) {
  .container {
    max-width: none;
  }

  .table-wrap {
    overflow: visible;
    border-radius: 0;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    min-width: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .third-party-table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    margin: 12px 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-e1);
    overflow: hidden;
  }

  td {
    display: block;
    min-height: 44px;
    padding: 12px 14px;
    border-bottom: .5px solid var(--separator);
  }

  td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .storage-table td::before { content: attr(data-label); }
  .privacy-data-table td:nth-child(1)::before { content: "使用场景"; }
  .privacy-data-table td:nth-child(2)::before { content: "收集信息"; }
  .privacy-data-table td:nth-child(3)::before { content: "使用目的"; }
  .permission-table td:nth-child(1)::before { content: "权限"; }
  .permission-table td:nth-child(2)::before { content: "用途"; }
  .permission-table td:nth-child(3)::before { content: "关闭影响"; }
  .third-party-table td:nth-child(1)::before { content: "第三方"; }
  .third-party-table td:nth-child(2)::before { content: "服务商/地区"; }
  .third-party-table td:nth-child(3)::before { content: "使用场景"; }
  .third-party-table td:nth-child(4)::before { content: "共享或收集数据"; }
  .third-party-table td:nth-child(5)::before { content: "设备标识"; }
  .third-party-table td:nth-child(6)::before { content: "初始化/触发"; }
  .third-party-table td:nth-child(7)::before { content: "共享方式"; }
  .third-party-table td:nth-child(8)::before { content: "隐私政策"; }
  .personal-info-table td:nth-child(1)::before { content: "功能场景"; }
  .personal-info-table td:nth-child(2)::before { content: "处理信息"; }
  .personal-info-table td:nth-child(3)::before { content: "是否上传云端"; }
  .personal-info-table td:nth-child(4)::before { content: "是否必要"; }
  .personal-info-table td:nth-child(5)::before { content: "目的/影响"; }
  .retention-table td:nth-child(1)::before { content: "数据类型"; }
  .retention-table td:nth-child(2)::before { content: "保存期限"; }
  .retention-table td:nth-child(3)::before { content: "删除或说明"; }
  .region-table td:nth-child(1)::before { content: "地区/对象"; }
  .region-table td:nth-child(2)::before { content: "补充说明"; }
  html[lang="en"] .privacy-data-table td:nth-child(1)::before { content: "Scenario"; }
  html[lang="en"] .privacy-data-table td:nth-child(2)::before { content: "Data"; }
  html[lang="en"] .privacy-data-table td:nth-child(3)::before { content: "Purpose"; }
  html[lang="en"] .permission-table td:nth-child(1)::before { content: "Permission"; }
  html[lang="en"] .permission-table td:nth-child(2)::before { content: "Purpose"; }
  html[lang="en"] .permission-table td:nth-child(3)::before { content: "If disabled"; }
  html[lang="en"] .third-party-table td:nth-child(1)::before { content: "Third party"; }
  html[lang="en"] .third-party-table td:nth-child(2)::before { content: "Provider/region"; }
  html[lang="en"] .third-party-table td:nth-child(3)::before { content: "Scenario"; }
  html[lang="en"] .third-party-table td:nth-child(4)::before { content: "Shared data"; }
  html[lang="en"] .third-party-table td:nth-child(5)::before { content: "Identifiers"; }
  html[lang="en"] .third-party-table td:nth-child(6)::before { content: "Trigger"; }
  html[lang="en"] .third-party-table td:nth-child(7)::before { content: "Sharing method"; }
  html[lang="en"] .third-party-table td:nth-child(8)::before { content: "Privacy policy"; }
  html[lang="en"] .personal-info-table td:nth-child(1)::before { content: "Scenario"; }
  html[lang="en"] .personal-info-table td:nth-child(2)::before { content: "Data"; }
  html[lang="en"] .personal-info-table td:nth-child(3)::before { content: "Cloud upload"; }
  html[lang="en"] .personal-info-table td:nth-child(4)::before { content: "Required"; }
  html[lang="en"] .personal-info-table td:nth-child(5)::before { content: "Purpose/impact"; }
  html[lang="en"] .retention-table td:nth-child(1)::before { content: "Data category"; }
  html[lang="en"] .retention-table td:nth-child(2)::before { content: "Retention"; }
  html[lang="en"] .retention-table td:nth-child(3)::before { content: "Deletion/notes"; }
  html[lang="en"] .region-table td:nth-child(1)::before { content: "Region/person"; }
  html[lang="en"] .region-table td:nth-child(2)::before { content: "Additional notice"; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .notice {
    background: #eef4ff;
  }
}
