/* page-terms
 * Shared legal frame (heading, kicker, article typography) lives in pages/privacy.css.
 * Here: blue accent + ceoacc's rule boxes, "✦" divider and the two callouts.
 */
#page-terms .legal-page {
  --legal-accent: #3478f6;
  --legal-accent-soft: rgba(52, 120, 246, .10);
  --legal-accent-line: rgba(52, 120, 246, .3);
  --terms-box-line: #e5e7eb;
}
html.cg-dark #page-terms .legal-page { --terms-box-line: #354359; }
#page-terms .legal-heading p { max-width: 720px; }

/* ceoacc's rich-text wrapper resets the article to a 1.6 line-height system stack. */
#page-terms .terms-body {
  width: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}
#page-terms :is(.terms-box, .terms-callout) {
  margin-bottom: 12px;
  border: 1px solid var(--terms-box-line);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
}
#page-terms .terms-box { padding: 16px 18px; }
#page-terms .terms-box :is(h2, ul, p) { margin-left: 0; margin-right: 0; }

#page-terms .terms-divider { display: flex; align-items: center; gap: 15px; margin: 20px 0 15px; }
#page-terms .terms-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #d1d5db, transparent); }
#page-terms .terms-divider span { color: #9ca3af; font-size: 14px; }

#page-terms .terms-callout { display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px; }
#page-terms .terms-callout:last-child { margin-bottom: 0; }
/* Keep the bold label on one line like ceoacc's short Chinese labels ("温馨提示：") render. */
#page-terms .terms-callout strong { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }

@media (max-width: 575.98px) {
  #page-terms .terms-callout { display: block; }
  #page-terms .terms-callout strong { white-space: normal; }
}
