:root {
  color-scheme: light;
  --legal-bg: #f6f7fb;
  --legal-panel: #ffffff;
  --legal-text: #18191d;
  --legal-muted: #676b76;
  --legal-line: #e5e7ed;
  --legal-accent: #6366f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--legal-bg);
  color: var(--legal-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.legal-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.legal-brand,
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.legal-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-weight: 900;
}

.legal-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.legal-brand strong {
  font-size: 14px;
}

.legal-back {
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-card {
  border: 1px solid var(--legal-line);
  border-radius: 18px;
  padding: 42px 52px;
  background: var(--legal-panel);
  box-shadow: 0 24px 64px rgba(31, 35, 48, 0.08);
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--legal-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--legal-muted);
  font-size: 13px;
}

.legal-summary {
  margin: 0 0 30px;
  color: #3e424c;
  font-size: 15px;
  line-height: 1.85;
}

.legal-section {
  padding: 27px 0;
  border-top: 1px solid var(--legal-line);
}

.legal-section h2 {
  margin: 0 0 13px;
  font-size: 20px;
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 15px;
}

.legal-section p,
.legal-section li {
  color: #555a65;
  font-size: 14px;
  line-height: 1.85;
}

.legal-section p {
  margin: 9px 0;
}

.legal-section ul,
.legal-section ol {
  margin: 10px 0;
  padding-left: 22px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 15px;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--legal-line);
  padding: 12px;
  vertical-align: top;
  text-align: left;
  line-height: 1.65;
}

.legal-table th {
  background: #f7f8fb;
  color: #333741;
}

.legal-table td {
  color: #5d626d;
}

.legal-footer {
  margin-top: 18px;
  color: #8a8e98;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 700px) {
  .legal-shell {
    width: min(100% - 20px, 920px);
    padding-top: 14px;
  }

  .legal-topbar {
    padding: 0 4px;
  }

  .legal-brand strong {
    display: none;
  }

  .legal-card {
    border-radius: 14px;
    padding: 28px 20px;
  }
}
