/* 漫點品牌：條款類頁面（正式合約單欄排版） */
body.mb-legal-page { margin: 0; background: oklch(0.966 0.003 260); }
.mblg {
  box-sizing: border-box; max-width: 800px; margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 48px) clamp(80px, 10vw, 128px);
  font-family: 'Noto Sans TC', sans-serif; color: oklch(0.3 0.03 268);
}
.mblg *, .mblg *::before, .mblg *::after { box-sizing: border-box; }

/* 標題 */
.mblg__head { text-align: center; padding-bottom: 32px; border-bottom: 1px solid oklch(0.345 0.165 264 / 0.25); }
.mblg__en { margin: 0 0 14px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: oklch(0.44 0.17 261); }
.mblg__title { margin: 0; font-family: 'Chiron Sung HK', 'Noto Serif TC', serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.4; letter-spacing: 0.08em; color: oklch(0.345 0.165 264); }
.mblg__org { margin: 14px 0 0; font-size: 13px; letter-spacing: 0.08em; color: oklch(0.5 0.03 265); }

/* 目錄 */
.mblg__toc { margin: 40px 0 8px; padding: 24px 28px; background: #fff; border: 1px solid oklch(0.9 0.002 260); }
.mblg__toc-title { margin: 0 0 12px; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; color: oklch(0.345 0.165 264); }
.mblg__toc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.mblg__toc a { font-size: 14px; line-height: 1.7; letter-spacing: 0.04em; color: oklch(0.38 0.06 266); text-decoration: none; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.mblg__toc a:hover { color: oklch(0.345 0.165 264); border-bottom-color: currentColor; }

/* 內文 */
.mblg__body { font-size: 16px; line-height: 2; letter-spacing: 0.03em; }
.mblg__body > p:first-child { margin-top: 40px; }
.mblg__body p { margin: 0 0 16px; }
.mblg__body h2 {
  scroll-margin-top: 96px;
  margin: 48px 0 16px; padding-top: 28px; border-top: 1px solid oklch(0.9 0.002 260);
  font-weight: 700; font-size: 18px; line-height: 1.6; letter-spacing: 0.06em; color: oklch(0.345 0.165 264);
}
.mblg__body h3 { margin: 28px 0 10px; font-weight: 700; font-size: 16px; color: oklch(0.345 0.165 264); }
.mblg__body ol, .mblg__body ul { margin: 0 0 16px; padding-left: 1.8em; }
.mblg__body li { margin: 0 0 8px; padding-left: 4px; }
.mblg__body ol > li::marker { font-weight: 700; color: oklch(0.345 0.165 264); }
.mblg__body ul > li::marker { color: oklch(0.345 0.165 264); }
.mblg__body a { color: oklch(0.345 0.165 264); text-decoration: underline; text-underline-offset: 3px; }
.mblg__body strong { color: oklch(0.3 0.14 266); }

.mblg__contact { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid oklch(0.345 0.165 264 / 0.25); font-size: 14px; letter-spacing: 0.06em; color: oklch(0.47 0.05 265); text-align: center; }
.mblg__contact a { color: oklch(0.345 0.165 264); text-decoration: underline; text-underline-offset: 3px; }
.mblg__contact span { margin-left: 16px; }
@media (max-width: 640px) { .mblg__contact span { display: block; margin: 4px 0 0; } }

@media (max-width: 640px) {
  .mblg__head { text-align: left; }
  .mblg__toc { padding: 20px; }
  .mblg__toc ol { grid-template-columns: 1fr; }
  .mblg__body { font-size: 15px; }
}

/* 法律聲明（三頁共用，範本內建） */
.mblg__notice { margin: 56px 0 0; padding: 28px 32px; background: #fff; border: 1px solid oklch(0.345 0.165 264 / 0.25); border-left: 3px solid oklch(0.345 0.165 264); }
.mblg__notice-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: 0.12em; color: oklch(0.345 0.165 264); }
.mblg__notice-title small { font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: 0.2em; color: oklch(0.44 0.17 261); }
.mblg__notice p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.9; letter-spacing: 0.03em; text-wrap: pretty; }

.mblg__notice-en { margin-top: 16px; padding-top: 16px; border-top: 1px solid oklch(0.9 0.002 260); }
.mblg__notice-en p { font-family: 'Noto Sans TC', sans-serif; font-weight: 400; font-size: 13px; line-height: 1.8; letter-spacing: 0.01em; color: oklch(0.45 0.03 265); }
@media (max-width: 640px) { .mblg__notice { padding: 22px 20px; } }

.mblg__notice ol { margin: 0; padding-left: 1.6em; }
.mblg__notice li { margin: 0 0 8px; padding-left: 4px; font-size: 14.5px; line-height: 1.9; letter-spacing: 0.03em; text-wrap: pretty; }
.mblg__notice li:last-child { margin-bottom: 0; }
.mblg__notice li::marker { font-weight: 700; color: oklch(0.345 0.165 264); }
.mblg__notice-en li { font-family: 'Noto Sans TC', sans-serif; font-weight: 400; font-size: 13px; line-height: 1.8; letter-spacing: 0.01em; color: oklch(0.45 0.03 265); }

/* 標題固定：往下捲時標題留在頁首下方並縮小，內容從下面滑過 */
.mblg__head {
  position: sticky; top: var(--mblg-top, 77px); z-index: 900;
  margin: 0 calc(-1 * clamp(20px, 5vw, 48px)); padding: 0 clamp(20px, 5vw, 48px) 32px;
  background: oklch(0.966 0.003 260);
  transition: padding .3s ease;
}
.mblg__head .mblg__en, .mblg__head .mblg__title, .mblg__head .mblg__org { transition: font-size .3s ease, margin .3s ease, opacity .25s ease, max-height .3s ease; }
.mblg__head .mblg__org { max-height: 40px; overflow: hidden; }
.mblg__head.is-compact { padding-top: 14px; padding-bottom: 14px; }
.mblg__head.is-compact .mblg__en { margin-bottom: 4px; font-size: 10px; }
.mblg__head.is-compact .mblg__title { font-size: 22px; }
.mblg__head.is-compact .mblg__org { max-height: 0; margin-top: 0; opacity: 0; }
@media (max-width: 640px) { .mblg__head.is-compact .mblg__title { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .mblg__head, .mblg__head * { transition: none !important; } }
