/* Haolian Health — shared styles for all static legal/support pages.
   Page type is set via a body class: .doc (legal documents),
   .home (language selector), .error (404). */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 auto;
}

/* Chinese pages get slightly looser line spacing for readability. */
html[lang="zh-CN"] body { line-height: 1.75; }

/* ---------- Legal document pages (.doc) ---------- */
body.doc { max-width: 720px; padding: 20px 20px 32px; }

.doc h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.doc h2 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.doc h3 { font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
.doc p { margin-bottom: 8px; }
.doc ul, .doc ol { padding-left: 20px; margin-bottom: 8px; }
.doc li { margin-bottom: 4px; }
.doc strong { font-weight: 700; }
.doc a { color: #1a1a1a; }

.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.doc th, .doc td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f5f5f5; font-weight: 600; }

.doc .meta { font-size: 13px; color: #888; margin-bottom: 24px; }
.doc .meta p { margin-bottom: 2px; }

.doc .card { background: #f7f7f8; border: 1px solid #ececec; border-radius: 8px; padding: 14px 18px; margin: 12px 0; }

.doc .lang { font-size: 13px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.doc .lang .current { color: #1a1a1a; font-weight: 700; margin: 0 6px; }
.doc .lang a { color: #555; text-decoration: none; margin: 0 6px; }
.doc .lang a:hover { color: #1a1a1a; text-decoration: underline; }
.doc .lang .sep { color: #ccc; }

/* ---------- Language selector (.home) ---------- */
body.home { max-width: 560px; padding: 40px 20px; }

.home h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.home .sub { font-size: 14px; color: #888; margin-bottom: 28px; }
.home .langbox { border: 1px solid #ececec; border-radius: 10px; padding: 8px 18px; margin-bottom: 28px; }
.home .langrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid #f0f0f0; }
.home .langrow:last-child { border-bottom: none; }
.home .langrow .name { font-size: 16px; font-weight: 600; }
.home .langrow .name small { display: block; font-size: 12px; font-weight: 400; color: #999; }
.home .langrow a { color: #1a1a1a; text-decoration: none; font-size: 14px; }
.home .langrow a:hover { text-decoration: underline; }
.home .docs { margin-bottom: 28px; }
.home .docs h2 { font-size: 14px; font-weight: 700; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.home .docs ul { list-style: none; }
.home .docs li { padding: 10px 4px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; gap: 12px; }
.home .docs li:last-child { border-bottom: none; }
.home .docs .t { font-weight: 500; }
.home .docs .t small { display: block; font-weight: 400; color: #999; font-size: 12px; }
.home .docs .links a { color: #555; text-decoration: none; margin-left: 10px; white-space: nowrap; }
.home .docs .links a:hover { text-decoration: underline; }
.home .foot { font-size: 12px; color: #aaa; }

/* ---------- 404 page (.error) ---------- */
body.error { max-width: 560px; padding: 40px 20px; }

.error h1 { font-size: 48px; font-weight: 700; margin-bottom: 4px; color: #ccc; }
.error h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.error p { margin-bottom: 12px; }
.error ul { list-style: none; padding: 0; }
.error li { margin-bottom: 8px; }
.error a { color: #1a1a1a; text-decoration: underline; }
.error a:hover { color: #555; }
.error .lang a { color: #555; text-decoration: none; margin: 0 6px; }
.error .lang a:hover { color: #1a1a1a; text-decoration: underline; }
.error .lang .sep { color: #ccc; }
.error hr { border: none; border-top: 1px solid #eee; margin: 20px 0; }
