/* Legal pages (服務條款, 隱私權政策與個人資料蒐集告知), in 晴天.
   Loads after site.css. A calm reading column like a working page: no art, no motion. Tokens and shared pieces
   (.demo-strip, .tag, .card, .link, header, footer) come from site.css; only the reading layout lives here. */

.legal .foot{margin-top:clamp(48px,7vw,80px)}
.lg-wrap{max-width:800px;padding-top:clamp(28px,4vw,48px)}

/* page head: title, one line, version */
.lg-head h1{font-size:clamp(28px,3.2vw,42px)}
.lg-head .lede{max-width:none}
.lg-ver{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:16px 0 0;font-size:15px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.lg-ver b{color:var(--ink);font-weight:700}

/* the short version: one tinted card, because it stands for the whole page */
.lg-sum{margin-top:28px;padding:22px 24px}
.lg-sum h2{font-size:clamp(19px,1.7vw,22px)}
.lg-sum ul{margin:10px 0 0;padding-left:1.2em}
.lg-sum li{margin:6px 0 0;font-size:16px;line-height:1.75;color:var(--ink)}

/* table of contents: plain rows split by hairlines, two columns when there is room */
.lg-toc{margin-top:32px}
.lg-toc h2{font-family:var(--ui);font-size:15px;font-weight:700;letter-spacing:0;color:var(--ink-soft)}
.lg-toc ol{margin:8px 0 0;padding:0;list-style:none;counter-reset:toc;columns:2;column-gap:32px;border-top:1px solid var(--line)}
.lg-toc li{counter-increment:toc;break-inside:avoid;border-bottom:1px solid var(--line)}
.lg-toc a{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0;font-weight:600;font-size:16px;line-height:1.5;color:var(--cobalt-deep);text-decoration:none}
.lg-toc a::before{content:counter(toc);flex:none;min-width:1.6em;font-family:var(--round);font-weight:900;color:var(--ink-faint);font-variant-numeric:tabular-nums}
.lg-toc a:hover{text-decoration:underline}

/* sections */
.lg-sec{margin-top:clamp(40px,5vw,56px);scroll-margin-top:84px}
.lg-sec h2{font-size:clamp(22px,2.2vw,28px);line-height:1.4}
.lg-sec h3{margin-top:26px;font-size:clamp(18px,1.5vw,20px)}
.lg-sec p,.lg-sec li{font-size:16px;line-height:1.85;color:var(--ink-soft)}
.lg-sec p{margin:12px 0 0}
.lg-sec ul,.lg-sec ol{margin:12px 0 0;padding-left:1.4em}
.lg-sec li{margin:6px 0 0}
.lg-sec li::marker{color:var(--ink-faint)}
.lg-sec strong{color:var(--ink);font-weight:700}
.lg-sec a:not(.btn){color:var(--cobalt-deep);font-weight:600}
.lg-sec code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;color:var(--ink);overflow-wrap:anywhere}

/* item lists: the name on the left edge, the explanation beside it, rows split by hairlines */
.lg-dl{margin:16px 0 0;border-top:1px solid var(--line)}
.lg-dl>div{display:grid;grid-template-columns:minmax(0,11em) minmax(0,1fr);gap:4px 24px;padding:12px 0;border-bottom:1px solid var(--line)}
.lg-dl dt{font-weight:700;font-size:16px;line-height:1.7;color:var(--ink)}
.lg-dl dd{margin:0;font-size:16px;line-height:1.8;color:var(--ink-soft)}
.lg-dl dd small{display:block;margin-top:2px;font-size:14px;color:var(--ink-soft)}

/* what we do not collect: a quiet note, not a warning */
.lg-not{margin-top:18px;padding:16px 20px}
.lg-not h3{margin:0;font-size:18px}

/* unknown facts the owner still has to fill in: plainly marked, never mistaken for real text */
.todo{display:inline;padding:1px 6px;border-radius:var(--r-xs);background:var(--grey);box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--ink);font-weight:700;font-size:.95em;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* the consent sentence the sign-up form shows beside its tick-box */
.lg-consent{margin-top:16px;padding:20px 22px}
.lg-consent p#consent-text{margin:0;font-size:17px;line-height:1.8;font-weight:700;color:var(--ink)}
.lg-consent .meta{margin:10px 0 0}

/* the top notice: the site's sample-data strip, with the word 草稿 picked out */
.lg-draft b{color:var(--ink)}

.lg-back{margin-top:clamp(40px,5vw,56px);padding-top:16px;border-top:1px solid var(--line)}

@media (max-width:640px){
  .lg-toc ol{columns:1}
  .lg-dl>div{grid-template-columns:1fr;gap:2px}
  .lg-sum,.lg-consent{padding:18px 16px}
}
