/* ========================================
   隐私政策 / 用户协议 - 独立清爽样式
   ======================================== */

:root {
  --primary: #16a34a;
  --text: #1f2937;
  --text-secondary: #4b5563;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --border: #e5e7eb;
  --radius: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-soft);
}

.policy-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 48px 56px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.policy-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.policy-meta {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.policy-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
}

.policy-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--text);
}

.policy-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
}

.policy-body p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-align: justify;
}

.policy-body ol,
.policy-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.policy-body li {
  margin-bottom: 6px;
}

.policy-body li > p {
  margin: 8px 0;
}

.policy-body li > ul,
.policy-body li > ol {
  margin-top: 6px;
  margin-bottom: 6px;
}

.policy-body strong {
  color: var(--text);
  font-weight: 600;
}

.policy-body a {
  color: var(--primary);
  text-decoration: none;
}

.policy-body a:hover {
  text-decoration: underline;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.policy-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}

.third-party {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

.third-party h4 {
  margin-top: 0;
  color: var(--primary);
}

.third-party ul {
  margin-bottom: 0;
}

.policy-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 640px) {
  .policy-wrapper {
    margin: 0;
    padding: 32px 20px;
    border-radius: 0;
  }

  .policy-header h1 {
    font-size: 24px;
  }

  .policy-body h2 {
    font-size: 17px;
  }

  .policy-body p,
  .policy-body ol,
  .policy-body ul {
    font-size: 14px;
  }

  .policy-table {
    font-size: 12px;
  }

  .policy-table th,
  .policy-table td {
    padding: 8px;
  }
}
