:root {
  --yellow: #f7bf26;
  --ink: #171714;
  --muted: #6f6f66;
  --line: #e3e3dc;
  --paper: #ffffff;
  --canvas: #f3f3ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.legal-header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
}

.back-home {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  background: var(--yellow);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.legal-shell {
  margin-top: 42px;
  margin-bottom: 54px;
  padding: 54px 64px 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 900;
}

.legal-meta {
  margin: 0 0 36px;
  padding-bottom: 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.legal-content h2 {
  margin: 42px 0 14px;
  font-size: 23px;
  line-height: 1.45;
}

.legal-content p {
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.legal-content table {
  width: 100%;
  margin: 22px 0 28px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal-content th {
  background: #fff8dc;
  text-align: left;
}

.legal-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink);
}

.legal-footer-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

.legal-footer a {
  color: var(--yellow);
}

@media (max-width: 680px) {
  .legal-header-inner,
  .legal-shell,
  .legal-footer-inner {
    width: min(calc(100% - 28px), 920px);
  }

  .legal-shell {
    margin-top: 18px;
    margin-bottom: 28px;
    padding: 30px 20px 38px;
  }

  .legal-title {
    font-size: 29px;
  }

  .legal-content h2 {
    margin-top: 34px;
    font-size: 20px;
  }

  .legal-content table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
    white-space: normal;
  }

  .legal-content th,
  .legal-content td {
    min-width: 150px;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
