/* ==========================================================================
   legal.css —— 合规页（关于我们 / 隐私政策 / 用户协议 / 404）专用版式
   仅在这些静态页引入，不影响首页与制作页。
   依赖 base.css 的变量与 .icp-bar 页脚。
   ========================================================================== */

.legal-page {
  background: #f2f3f5;
  color: #333;
}

/* ---- 顶部返回条（吸顶） ---- */
.legal-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.legal-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 4px;
  color: #333;
  border-radius: 50%;
}

.legal-back:active { background: #f2f2f2; }

.legal-head-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ---- 正文容器 ---- */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 761px) {
  .legal-main {
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 30px 40px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  }
}

.legal-main h1 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 6px;
}

.legal-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.legal-main h2 {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 26px 0 10px;
  padding-left: 11px;
}

.legal-main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--c-accent, #66f);
}

.legal-main h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.legal-main p { margin: 0 0 10px; }

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

.legal-main li { margin-bottom: 4px; }

.legal-main a {
  color: var(--c-accent, #66f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-main strong { font-weight: 700; }

/* ---- 提示块 / 敏感信息提示 ---- */
.legal-note {
  margin: 12px 0 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #6b4b16;
  background: #fff8e6;
  border: 1px solid #ffe3a3;
  border-radius: 6px;
}

.legal-note b { color: #a56400; }

/* ---- 信息收集清单表 ---- */
.legal-table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
}

.legal-table th,
.legal-table td {
  padding: 8px 10px;
  border: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- 联系信息卡 ---- */
.legal-contact {
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.legal-contact li {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid #f1f1f1;
}

.legal-contact li:first-child { border-top: 0; }

.legal-contact li span:first-child {
  flex: 0 0 8em;
  color: #999;
}

.legal-contact li span:last-child { flex: 1; word-break: break-all; }

/* 手机上标签太长（如「统一社会信用代码」）会挤成两行，改成上下排 */
@media (max-width: 520px) {
  .legal-contact li {
    flex-direction: column;
    gap: 3px;
  }
  .legal-contact li span:first-child {
    flex: none;
    font-size: 12px;
  }
}

/* ---- 页脚（法律页没有底部固定导航，去掉为它留的白） ---- */
.legal-page .icp-bar {
  padding: 20px 16px 30px;
  max-width: 760px;
  margin: 0 auto;
  background: transparent;
}

.legal-page .icp-bar .icp-links {
  margin-bottom: 6px;
  font-size: 12px;
  color: #9aa0a6;
}

.legal-page .icp-bar .icp-links a {
  color: #6b7075;
  margin: 0 6px;
}

.legal-page .icp-bar .icp-links a.is-on {
  color: var(--c-accent, #66f);
  font-weight: 600;
}

/* ---- 404 页 ---- */
.err-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 50px);
  padding: 40px 24px;
  text-align: center;
}

.err-code {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 2px;
  color: #e6e6ef;
}

.err-title {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.err-desc {
  font-size: 13px;
  color: #8b9096;
  line-height: 1.8;
  margin-bottom: 22px;
}

.err-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.err-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  color: #fff;
  background: var(--c-accent, #66f);
  border-radius: 19px;
}

.err-btn.is-plain {
  color: #555;
  background: #fff;
  border: 1px solid #ddd;
}
