:root {
  --ink: #17201f;
  --copy: #3f4b49;
  --muted: #6f7b79;
  --line: #dce4e1;
  --surface: #ffffff;
  --soft: #f4f8f6;
  --accent: #26766d;
  --accent-strong: #175c55;
  --warm: #fff8ef;
  --warm-line: #efd9b8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9f8;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 228, 225, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.topbar-inner,
.legal-shell,
.legal-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.back {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.legal-shell { padding: 48px 0 72px; }

.hero {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--copy);
  font-size: 16px;
}

.notice {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  background: var(--warm);
  color: #594a37;
  font-size: 14px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.legal-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--copy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  border-color: rgba(38, 118, 109, .35);
  background: #edf6f3;
  color: var(--accent-strong);
}

.document { max-width: 880px; }

section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
}

h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
}

p,
li {
  color: var(--copy);
  font-size: 15px;
}

p { margin: 0 0 12px; }
ul, ol { margin: 0; padding-left: 1.35em; }
li + li { margin-top: 8px; }
strong { color: var(--ink); }
.document a { color: var(--accent-strong); font-weight: 650; }

.table-wrap {
  margin: 24px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--soft);
  color: #2e3b39;
  font-weight: 700;
}

td { color: var(--copy); }
tr:last-child td { border-bottom: 0; }

.tag {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 2px 7px;
  border-radius: 4px;
  background: #edf3f1;
  color: #45615d;
  font-size: 12px;
  white-space: nowrap;
}

.legal-footer {
  padding: 0 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 680px) {
  .topbar-inner,
  .legal-shell,
  .legal-footer { width: min(100% - 28px, 1040px); }
  .topbar-inner { min-height: 58px; }
  .legal-shell { padding: 34px 0 56px; }
  .hero { padding-bottom: 26px; }
  h1 { font-size: 30px; }
  .lead { font-size: 15px; }
  section { padding: 24px 0; }
  h2 { font-size: 19px; }
  .legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-nav a { justify-content: center; text-align: center; }

  .table-wrap { overflow: hidden; }
  table,
  tbody,
  tr,
  td { display: block; }
  table { min-width: 0; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  tr + tr { border-top: 8px solid var(--soft); }
  td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 13px;
  }
  td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .personal-list td:nth-child(1)::before { content: "信息类型"; }
  .personal-list td:nth-child(2)::before { content: "具体字段"; }
  .personal-list td:nth-child(3)::before { content: "使用目的"; }
  .personal-list td:nth-child(4)::before { content: "触发方式"; }
  .third-party-list td:nth-child(1)::before { content: "服务商"; }
  .third-party-list td:nth-child(2)::before { content: "使用目的"; }
  .third-party-list td:nth-child(3)::before { content: "涉及信息"; }
  .third-party-list td:nth-child(4)::before { content: "触发说明"; }
  .third-party-list td:nth-child(5)::before { content: "规则链接"; }
  .permissions-list td:nth-child(1)::before { content: "权限/能力"; }
  .permissions-list td:nth-child(2)::before { content: "Android"; }
  .permissions-list td:nth-child(3)::before { content: "iOS"; }
  .permissions-list td:nth-child(4)::before { content: "鸿蒙"; }
  .permissions-list td:nth-child(5)::before { content: "用途"; }
}

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