/* 法律文本页：沿用官网的暖色深色基调，以克制的浅色文稿承载正式条款。 */
.legal-page {
  --legal-bg: #08080a;
  --legal-paper: #f4efe7;
  --legal-paper-soft: #ebe4d8;
  --legal-ink: #25221e;
  --legal-muted: #676059;
  --legal-line: #d9d0c3;
  --legal-accent: #a56f3f;
  --legal-alert: #8a3f36;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--legal-ink);
  background:
    radial-gradient(800px 340px at 8% -10%, rgba(201,143,90,.13), transparent 64%),
    radial-gradient(640px 320px at 94% 0%, rgba(137,151,199,.08), transparent 62%),
    var(--legal-bg);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}

.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: inherit; }

.legal-page header {
  padding: 42px max(22px, calc((100% - 960px) / 2)) 38px;
  color: #f4efe7;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,8,10,.74);
}

.legal-page header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b6ada5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
}

.legal-page .legal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-page .legal-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(201,143,90,.46);
  border-radius: 999px;
  color: #e3bd95;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.legal-page .legal-home-link:hover {
  border-color: #dca06c;
  color: #f7d4b0;
  background: rgba(201,143,90,.12);
}

.legal-page header .brand::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c98f5a;
  box-shadow: 0 0 0 4px rgba(201,143,90,.12);
  content: "";
}

.legal-page header h1 {
  margin: 17px 0 0;
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 640;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.legal-page header p {
  margin: 13px 0 0;
  color: #aaa29a;
  font-size: 13px;
  letter-spacing: .01em;
}

.legal-page main {
  width: min(100%, 1000px);
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 34px 22px 72px;
}

.legal-page article {
  position: relative;
  padding: clamp(30px, 5vw, 58px) clamp(22px, 5vw, 62px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: var(--legal-paper);
  box-shadow: 0 28px 80px rgba(0,0,0,.26), 0 1px 0 rgba(255,255,255,.18) inset;
}

.legal-page article::before {
  position: absolute;
  top: 0;
  right: 34px;
  left: 34px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--legal-accent), transparent);
  content: "";
  opacity: .72;
}

.legal-page h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 40px 0 14px;
  padding-top: 2px;
  color: #302a24;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.legal-page h2::after {
  height: 1px;
  flex: 1;
  margin-left: 4px;
  background: var(--legal-line);
  content: "";
}

.legal-page h2:first-of-type { margin-top: 31px; }
.legal-page p { margin: 0 0 15px; }
.legal-page p, .legal-page li, .legal-page td { font-size: 14px; }
.legal-page ol, .legal-page ul { margin: 0 0 16px; padding-left: 1.5em; }
.legal-page li { margin: 5px 0; padding-left: .16em; }
.legal-page strong { color: #3d3127; }

.legal-page .notice {
  margin: 0;
  padding: 15px 17px;
  border: 1px solid #dbc7af;
  border-left: 3px solid var(--legal-accent);
  border-radius: 10px;
  color: #51463c;
  background: #eee5d8;
  font-size: 13px;
  line-height: 1.72;
}

.legal-page .hl, .legal-page .sens { color: var(--legal-alert); font-weight: 700; }
.legal-page a { color: #76502f; text-decoration: underline; text-decoration-color: rgba(118,80,47,.35); text-underline-offset: 3px; }
.legal-page a:hover { color: #4c301a; text-decoration-color: currentColor; }
.legal-page a:focus-visible { outline: 2px solid var(--legal-accent); outline-offset: 3px; border-radius: 3px; }

.legal-page table {
  width: 100%;
  margin: 17px 0 22px;
  border: 1px solid var(--legal-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
}

.legal-page th, .legal-page td {
  padding: 11px 13px;
  border-right: 1px solid var(--legal-line);
  border-bottom: 1px solid var(--legal-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal-page th:last-child, .legal-page td:last-child { border-right: 0; }
.legal-page tbody tr:last-child td { border-bottom: 0; }
.legal-page th { color: #44392f; background: var(--legal-paper-soft); font-size: 13px; font-weight: 700; }
.legal-page td { color: #4e4841; }

.legal-page footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px max(22px, calc((100% - 960px) / 2));
  border-top: 1px solid rgba(255,255,255,.07);
  color: #817a73;
  background: rgba(8,8,10,.72);
  font-size: 12px;
  line-height: 1.6;
}

.legal-page footer a { color: #c7a17b; text-decoration: none; }
.legal-page footer a:hover { color: #f1d1ac; }
.legal-page .legal-footer-record { text-align: center; white-space: nowrap; }
.legal-page .legal-footer-links { justify-self: end; text-align: right; }

@media (max-width: 640px) {
  .legal-page header { padding-top: 31px; padding-bottom: 29px; }
  .legal-page .legal-header-top { align-items: flex-start; }
  .legal-page .legal-home-link { flex: 0 0 auto; min-height: 32px; padding: 0 11px; }
  .legal-page header h1 { margin-top: 13px; font-size: 30px; }
  .legal-page header p { font-size: 12px; line-height: 1.65; }
  .legal-page main { padding: 20px 12px 42px; }
  .legal-page article { border-radius: 13px; }
  .legal-page article::before { right: 22px; left: 22px; }
  .legal-page h2 { gap: 8px; margin-top: 31px; font-size: 16px; }
  .legal-page h2::after { margin-left: 0; }
  .legal-page p, .legal-page li, .legal-page td { font-size: 13px; }
  .legal-page th, .legal-page td { padding: 9px 8px; }
  .legal-page th { font-size: 12px; }
  .legal-page footer { display: block; padding-top: 18px; padding-bottom: 18px; text-align: center; }
  .legal-page footer div + div { margin-top: 8px; }
  .legal-page .legal-footer-links { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page * { scroll-behavior: auto; }
}
