:root {
  color-scheme: light;
  --bg: #f3f7f6;
  --panel: #ffffff;
  --panel-soft: #eef5f3;
  --ink: #102326;
  --muted: #5a6a6d;
  --line: #d7e1df;
  --accent: #14786e;
  --accent-strong: #0f5f58;
  --warm: #b7792b;
  --shadow: 0 18px 45px rgba(16, 35, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(20, 120, 110, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(183, 121, 43, 0.08), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.72;
}

a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.hero,
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 243, 0.92)),
    linear-gradient(90deg, rgba(20, 120, 110, 0.12), rgba(183, 121, 43, 0.08));
  box-shadow: var(--shadow);
}

.hero::after,
.legal-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(20, 120, 110, 0.22);
  transform: rotate(18deg);
}

.legal-hero.agreement::after {
  border-color: rgba(183, 121, 43, 0.28);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  font-size: clamp(32px, 6vw, 64px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 4vw, 36px);
}

h3 {
  margin: 32px 0 10px;
  font-size: clamp(19px, 2.5vw, 24px);
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px 22px;
  padding: 0;
}

li + li {
  margin-top: 6px;
}

.hero-copy {
  max-width: 820px;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.meta-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.meta-strip div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(20, 120, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.meta-strip dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-strip dd {
  margin: 0;
  overflow-wrap: break-word;
  font-weight: 700;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.doc-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 35, 38, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.doc-card:hover,
.doc-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(20, 120, 110, 0.55);
  box-shadow: 0 16px 36px rgba(16, 35, 38, 0.1);
  outline: none;
}

.doc-kind {
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-title {
  font-size: 26px;
  font-weight: 850;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  max-width: 1060px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.language-links {
  display: flex;
  gap: 8px;
}

.top-nav a,
.language-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.legal-article {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(16, 35, 38, 0.055);
}

.legal-article + .legal-article {
  margin-top: 22px;
}

.legal-article h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  margin: 14px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

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

th:last-child,
td:last-child {
  border-right: 0;
}

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

th {
  background: var(--panel-soft);
  color: var(--ink);
}

@media (max-width: 860px) {
  .meta-strip,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100%, calc(100% - 18px));
    margin: 9px auto 20px;
  }

  .hero,
  .legal-hero,
  .legal-article {
    padding: 22px;
  }

  .top-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .language-links {
    width: 100%;
  }

  .top-nav a,
  .language-links a {
    justify-content: center;
    flex: 1;
  }

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

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  td {
    border-right: 0;
  }

  td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--warm);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  td:nth-child(1)::before {
    content: "信息类型 / Information Type";
  }

  td:nth-child(2)::before {
    content: "是否收集 / Collected";
  }

  td:nth-child(3)::before {
    content: "使用目的 / Purpose";
  }

  td:nth-child(4)::before {
    content: "存储位置 / Storage";
  }

  td:nth-child(5)::before {
    content: "保留时间 / Retention";
  }
}
