/* wanderfella.com 的首頁與部落格（HW-387）。來源：grainhour.com/wanderfella/ 的產品頁（site repo grainhour/src/product.html），
   換成問導遊自己的品牌色：暖米紙底 #F6F1E7、湖水藍 #146E8D、杯子黃 #F0A628（每頁只用一處：頂端選中的那一項）。
   由 web/site/build.mjs 複製到 public/assets/site.css；不要改 public/ 裡的那份。 */

:root {
  --paper: #F6F1E7;
  --mug: #F0A628;
  --lake: #146E8D;
  --ink: #15181b;
  --stone: #6F6A60;
  --hair: #DCD3C2;
  --qing: #146E8D;
  --en: "EB Garamond", "Noto Serif TC", Georgia, serif;
  --zh: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --zhs: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); }
body { color: var(--ink); font-family: var(--en); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.zh-page .t { font-family: var(--zh); }

.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: baseline; padding: calc(env(safe-area-inset-top, 0px) + 22px) clamp(16px, 4vw, 52px) 14px; background: linear-gradient(var(--paper) 55%, rgba(246, 241, 231, 0)); }
.mark { display: flex; align-items: center; gap: 9px; font-size: 22px; letter-spacing: 0.01em; }
.mark i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; transform: translateY(-1px); }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 34px); font-size: 16px; }
.zh-page .top nav { font-family: var(--zhs); font-size: 14px; letter-spacing: 0.12em; }

.wrap { width: min(1120px, 100% - 2 * clamp(16px, 6vw, 80px)); margin-inline: auto; }

/* the mark (same drawing as on the homepage) */
.pmark { display: block; width: clamp(84px, 8vw, 112px); height: auto; overflow: visible; }
.m-ring { fill: none; stroke: var(--wf-lens, #1F7A99); stroke-width: 60; }
.m-dot { fill: var(--wf-lens, #1F7A99); }
.m-g { fill: none; stroke: var(--wf-arc, #E8920F); stroke-width: 72; stroke-linecap: round; stroke-linejoin: round; }
.pmark .m-ring, .pmark .m-g { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.85s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.12s; }
.pmark .m-g { transition-delay: calc(0.3s + var(--i, 0) * 0.14s); }
.pmark.drawn .m-ring, .pmark.drawn .m-g { stroke-dashoffset: 0; opacity: 1; }

/* a phone screen */
.phone { position: relative; width: min(290px, 64vw); aspect-ratio: 720 / 1564; border-radius: 34px; overflow: hidden; border: 1px solid var(--hair); background: #fff; box-shadow: 0 40px 70px -40px rgba(21, 24, 27, 0.45), 0 2px 6px rgba(21, 24, 27, 0.06); }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 1 · the first screen */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: 120px 80px; }
.hero .pmark { margin: 0 auto; }
.hero .line { margin-inline: auto; }
.hero h1 { margin-top: 28px; font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.zh-page .hero h1 { font-family: var(--zh); font-weight: 500; letter-spacing: 0.12em; }
.hero .sub { margin-top: 10px; font-size: 18px; color: var(--stone); }
.hero .line { margin-top: 30px; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.55; max-width: 24em; }
.zh-page .hero .line { font-family: var(--zh); font-weight: 300; letter-spacing: 0.08em; line-height: 1.9; max-width: 19em; }
.badge { display: inline-block; margin-top: 36px; }
.badge img { display: block; height: 48px; width: auto; }
/* under each App Store badge: the Android version is on its way (a quiet line, not a second button) */
.soon { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; font-size: 16px; letter-spacing: 0.04em; color: var(--stone); }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qing); flex: none; }
.zh-page .soon { font-family: var(--zhs); font-size: 14px; letter-spacing: 0.12em; }

/* 2 · six things it does */
.ch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 8vw, 130px); align-items: center; padding-block: clamp(56px, 11vh, 120px); }
.ch:nth-child(even) { grid-template-columns: minmax(0, 1fr) auto; }
.ch:nth-child(even) .phone { order: 2; }
.ch .no { font-size: 15px; letter-spacing: 0.2em; color: var(--qing); }
.ch h2 { margin-top: 14px; font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; }
.zh-page .ch h2 { font-family: var(--zh); font-weight: 500; letter-spacing: 0.1em; line-height: 1.4; }
.ch p { margin-top: 18px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; color: #3E3A33; max-width: 22em; }
.zh-page .ch p { font-family: var(--zh); font-weight: 300; letter-spacing: 0.06em; line-height: 1.95; max-width: 17em; }
/* Chinese breaks at punctuation only (falling back to anywhere when a phrase is longer than the line) */
.zh-page p, .zh-page h1, .zh-page h2, .zh-page h3, .zh-page .four div, .zh-page footer div { word-break: keep-all; overflow-wrap: anywhere; }

/* small print under a chapter: what else it does (e.g. the notes the interpreter adds when they matter) */
.ch .tags { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font: 600 15px/1.5 var(--zhs); letter-spacing: 0.06em; color: var(--qing); }
.en-page .ch .tags { font-family: var(--en); font-size: 17px; letter-spacing: 0.02em; }
.ch .tags span { white-space: nowrap; }
.ch .tags span:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--hair); }   /* the dot ends a line, never starts one */

/* the three kinds of menu under the menu chapter: the photo from the shop laid over the app's translation */
.trio { grid-column: 1 / -1; order: 3; margin-top: clamp(28px, 6vh, 56px); }   /* always after the chapter, whichever side its phone is on */
.trio-k { font-size: 15px; letter-spacing: 0.2em; color: var(--qing); }
.zh-page .trio-k { font-family: var(--zhs); font-size: 14px; }
.trio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 20px; }
.mt { margin: 0; display: flex; flex-direction: column; align-items: center; }
.mt .mphoto { position: relative; z-index: 2; width: 86%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(21, 24, 27, 0.5), 0 0 0 4px #fff; transform: rotate(-2deg); margin-bottom: -18%; }
.mt:nth-child(2) .mphoto { transform: rotate(1.5deg); }
.mt .phone { width: 74%; border-radius: 28px; }
.mt figcaption { margin-top: 16px; font-size: 19px; }
.zh-page .mt figcaption { font-family: var(--zh); letter-spacing: 0.08em; }
.ch .tags { line-height: 1.5; }

/* 3 · for parents, and for whoever sets it up for them */
.band { padding-block: clamp(80px, 14vh, 150px); border-top: 1px solid var(--hair); text-align: center; }
.band .k { font-size: 15px; letter-spacing: 0.2em; color: var(--qing); }
.zh-page .band .k { font-family: var(--zhs); font-size: 14px; }
.band h2 { margin-top: 16px; font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; }
.zh-page .band h2 { font-family: var(--zh); font-weight: 500; letter-spacing: 0.1em; line-height: 1.45; }
.four { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 54px; }
.four div { padding: 26px 14px; border-top: 1px solid var(--ink); font-size: 20px; line-height: 1.45; }
.zh-page .four div { font-family: var(--zh); letter-spacing: 0.08em; line-height: 1.8; }
.band .p { margin: 48px auto 0; max-width: 30em; font-size: 20px; line-height: 1.6; color: #3E3A33; }
.zh-page .band .p { font-family: var(--zh); font-weight: 300; letter-spacing: 0.06em; line-height: 1.95; max-width: 24em; }

/* 4 · what it costs */
.cost { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: 54px; text-align: left; }
.cost h3 { font-weight: 500; font-size: 22px; }
.zh-page .cost h3 { font-family: var(--zh); letter-spacing: 0.1em; }
.cost p { margin-top: 10px; font-size: 18px; line-height: 1.6; color: #3E3A33; }
.zh-page .cost p { font-family: var(--zhs); font-size: 15.5px; letter-spacing: 0.04em; line-height: 1.9; }
.cost > div { padding-top: 22px; border-top: 1px solid var(--hair); }
.fine { margin-top: 34px; font-size: 16px; color: var(--stone); }
.zh-page .fine { font-family: var(--zhs); font-size: 14px; letter-spacing: 0.06em; }
.fine a { border-bottom: 1px solid var(--hair); }

/* 5 · to the App Store */
.end { padding-block: clamp(90px, 16vh, 170px); text-align: center; border-top: 1px solid var(--hair); }
.end .pmark { margin: 0 auto; }
.end h2 { margin-top: 26px; font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); }
.zh-page .end h2 { font-family: var(--zh); font-weight: 500; letter-spacing: 0.1em; }
.end .ask { display: inline-block; margin-top: 28px; font-size: 17px; border-bottom: 1px solid var(--hair); padding-bottom: 3px; }
.zh-page .end .ask { font-family: var(--zhs); font-size: 14.5px; letter-spacing: 0.08em; }
.end .badge { display: block; margin: 34px auto 0; width: max-content; }

footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; padding: 8vh clamp(16px, 4vw, 52px) calc(env(safe-area-inset-bottom, 0px) + 32px); border-top: 1px solid var(--hair); font-size: 15px; color: var(--stone); }
.zh-page footer { font-family: var(--zhs); font-size: 13px; letter-spacing: 0.08em; }
footer .mark { color: var(--ink); font-size: 28px; letter-spacing: 0; }
footer .mark img { width: 30px; height: 30px; border-radius: 7px; }
.zh-page footer .mark { font-family: var(--zh); font-weight: 500; letter-spacing: 0.06em; }
footer .parent { margin-top: 8px; }
footer .parent a, footer .legal a { color: inherit; border-bottom: 1px solid var(--hair); }
footer .legal { grid-column: 1 / -1; font-size: 12px; opacity: 0.85; }
footer nav { display: flex; gap: 20px; justify-content: flex-end; flex-wrap: wrap; }
footer div { text-wrap: balance; }
footer .credit a { white-space: nowrap; }   /* "CC BY 2.0" stays on one line */
footer .credit { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; }

/* line breaks: headings break evenly; running text avoids a last line of one or two characters */
h1, h2, h3, .four div { text-wrap: balance; }
p { text-wrap: pretty; }
/* things come up softly as they scroll in (not without the script, and not when motion is reduced) */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .hero { min-height: 88svh; padding-block: 100px 40px; }
  .ch, .ch:nth-child(even) { grid-template-columns: 1fr; gap: 34px; }
  .four { grid-template-columns: 1fr; gap: 0; max-width: 22em; margin-inline: auto; }
  .four div { padding: 16px 8px; }
  .ch:nth-child(even) .phone { order: 0; }
  .ch .phone { justify-self: center; }
  .trio-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin-inline: -4px; -webkit-overflow-scrolling: touch; }
  .mt { scroll-snap-align: center; }
  .cost { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .pmark .m-ring, .pmark .m-g { transition: none; } .js .rise { opacity: 1; transform: none; transition: none; } }

/* ── 頂端：問導遊的標誌＋故事＋語言 ── */
.mark img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.top nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mug); }   /* 這一頁唯一的杯子黃 */
.lang-hint { position: fixed; z-index: 40; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); display: none; gap: 14px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 10px 30px -12px rgba(21, 24, 27, 0.35); font: 15px/1.4 var(--zhs); letter-spacing: 0.06em; white-space: nowrap; }
.lang-hint.on { display: flex; }
.lang-hint a { color: var(--lake); border-bottom: 1px solid currentColor; }
.lang-hint button { border: 0; background: none; font: inherit; color: var(--stone); cursor: pointer; padding: 2px 4px; }

/* ── 部落格 ── */
.blog { padding-block: 140px 90px; }
.blog-head h1 { font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.zh-page .blog-head h1 { font-family: var(--zh); font-weight: 500; letter-spacing: 0.1em; }
.blog-head p { margin-top: 16px; font-size: 20px; line-height: 1.6; color: #3E3A33; max-width: 30em; }
.zh-page .blog-head p { font-family: var(--zh); font-weight: 300; letter-spacing: 0.06em; line-height: 1.9; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 56px; }
.card { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 18px; }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; background: #EDE5D4; }
.card .meta { margin-top: 16px; font: 14px/1.4 var(--zhs); letter-spacing: 0.08em; color: var(--lake); }
.card h2 { margin-top: 8px; font-weight: 500; font-size: 24px; line-height: 1.35; }
.zh-page .card h2 { font-family: var(--zh); letter-spacing: 0.06em; line-height: 1.5; }
.card p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: #3E3A33; }
.zh-page .card p { font-family: var(--zhs); font-size: 15.5px; letter-spacing: 0.04em; line-height: 1.85; }
.empty { margin-top: 56px; font-size: 19px; color: var(--stone); }
.zh-page .empty { font-family: var(--zh); letter-spacing: 0.06em; }
.draft-flag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: #B5470F; color: #fff; font: 600 12px/1.6 var(--zhs); letter-spacing: 0.06em; vertical-align: 2px; }

.post { padding-block: 130px 60px; }
.post-head { width: min(680px, 100% - 2 * clamp(20px, 6vw, 80px)); margin-inline: auto; }
.post-head .meta { font: 14px/1.4 var(--zhs); letter-spacing: 0.08em; color: var(--lake); }
.post-head h1 { margin-top: 14px; font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.2; }
.zh-page .post-head h1 { font-family: var(--zh); font-weight: 500; letter-spacing: 0.06em; line-height: 1.4; }
.post-head .dek { margin-top: 18px; font-size: 21px; line-height: 1.6; color: #3E3A33; }
.zh-page .post-head .dek { font-family: var(--zh); font-weight: 300; letter-spacing: 0.06em; line-height: 1.9; }
.post-cover { width: min(960px, 100% - 2 * clamp(20px, 6vw, 80px)); margin: 40px auto 0; }
.post-cover img { width: 100%; border-radius: 18px; display: block; }
.post-cover figcaption { margin-top: 10px; font: 13px/1.5 var(--zhs); color: var(--stone); }
.prose { width: min(680px, 100% - 2 * clamp(20px, 6vw, 80px)); margin: 48px auto 0; font-size: 20px; line-height: 1.75; color: #2A2722; }
.zh-page .prose { font-family: var(--zh); font-size: 19px; letter-spacing: 0; line-height: 2; }
/* 長文：中文照字斷行、避頭尾（首頁等其他頁的 keep-all 不動） */
.zh-page .prose p, .zh-page .prose h2, .zh-page .prose h3, .zh-page .prose li, .zh-page .prose figcaption { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 2.4em; font-weight: 700; line-height: 1.45; color: var(--ink); }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.3em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose figure { margin-block: 1.8em 2em; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--hair); }
.prose figcaption { margin-top: 8px; font: 0.8rem/1.6 var(--zhs); letter-spacing: 0; color: var(--stone); }
.prose figure + * { margin-top: 0; }
.prose .dates { list-style: none; padding: 0; border-left: 3px solid var(--lake); }
.prose .dates li { padding-left: 14px; font-variant-numeric: tabular-nums; }
.prose .dates li + li { margin-top: 0; }
.prose .todo { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .todo li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.prose .todo li + li { margin-top: 0; }
.prose .places { margin-top: 2em; }
.prose .places-h { font: 600 0.95rem/1.5 var(--zhs); letter-spacing: 0.04em; color: var(--lake); }
.prose .places ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 10px; }
.prose .places li + li { margin-top: 0; }
.prose .place { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; color: var(--ink); border-bottom-width: 1px; text-decoration: none; transition: border-color .15s, background-color .15s; }
.prose .place:hover { border-color: var(--lake); }
.prose .place:active { background: #F3EEE3; }
.prose .place-name { font-size: 0.95em; line-height: 1.5; }
.prose .place-sub { grid-column: 1; font: 0.78rem/1.5 var(--zhs); color: var(--stone); }
.prose .place-go { grid-column: 2; grid-row: 1 / span 2; color: var(--lake); font: 600 1rem/1 var(--zhs); }
.prose .todo .box { width: 16px; height: 16px; margin-top: 0.6em; border: 2px solid var(--lake); border-radius: 3px; }
.prose a { color: var(--lake); border-bottom: 1px solid rgba(20, 110, 141, 0.35); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 3px solid var(--lake); padding-left: 1em; color: #4A453D; }
.prose hr { border: 0; text-align: center; margin-block: 2.2em; }
.prose hr::after { content: "· · ·"; letter-spacing: 0.6em; color: var(--stone); }
/* 第二輪（docs/blog-cms.md「Markdown 的新寫法」）：虛線分段、圖說副標、大字、小字、重點框 */
.prose hr.dash { height: 0; border-top: 1px dashed var(--hair); margin-block: 2.4em; }
.prose hr.dash::after { content: none; }
.prose figcaption .credit { display: block; margin-top: 2px; font-size: 0.85em; color: #9A948A; }
.prose .lg { font-size: 1.25em; font-weight: 600; line-height: 1.6; }
.prose small { font-size: 0.8em; line-height: 1.6; color: var(--stone); }
.prose .callout { padding: 16px 20px; border-left: 4px solid var(--lake); border-radius: 0 12px 12px 0; background: rgba(20, 110, 141, 0.07); }
.prose .callout > p { margin: 0; }
.prose img { max-width: 100%; border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.85em; }
.prose th, .prose td { border-bottom: 1px solid var(--hair); padding: 8px 6px; text-align: left; vertical-align: top; }
.post-tags { width: min(680px, 100% - 2 * clamp(20px, 6vw, 80px)); margin: 48px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hair); font: 14px/1.5 var(--zhs); letter-spacing: 0.06em; color: var(--stone); }
.post-cta { width: min(680px, 100% - 2 * clamp(20px, 6vw, 80px)); margin: 56px auto 0; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--hair); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.post-cta img.icon { width: 64px; height: 64px; border-radius: 15px; }
.post-cta h2 { font-weight: 500; font-size: 21px; }
.zh-page .post-cta h2 { font-family: var(--zh); letter-spacing: 0.06em; }
.post-cta p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: #3E3A33; }
.zh-page .post-cta p { font-family: var(--zhs); font-size: 14.5px; letter-spacing: 0.04em; }
.post-cta .badge { margin-top: 12px; }
.post-cta .badge img { height: 40px; }
.post-more { width: min(680px, 100% - 2 * clamp(20px, 6vw, 80px)); margin: 40px auto 0; font-size: 17px; }
.zh-page .post-more { font-family: var(--zhs); font-size: 15px; letter-spacing: 0.06em; }
.post-more a { color: var(--lake); border-bottom: 1px solid currentColor; }
.notfound { min-height: 70svh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 120px 20px; }
.notfound h1 { font-weight: 400; font-size: 44px; }
.notfound a { color: var(--lake); border-bottom: 1px solid currentColor; }
@media (max-width: 760px) {
  .post-cta { grid-template-columns: 1fr; }
  .blog, .post { padding-top: 110px; }
}

/* ── 隱私權政策、使用條款、客服（條文照搬 grainhour.com 那份，樣式改成這個網站的紙與字）── */
.legal { width: min(70ch, 100% - 2 * clamp(20px, 6vw, 80px)); margin: 0 auto; padding-block: 130px 80px; font-size: 18px; line-height: 1.7; color: #2A2722; }
.zh-page .legal { font-family: var(--zhs); font-size: 16.5px; line-height: 1.9; letter-spacing: 0.02em; }
.legal a { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: currentColor; }
.legal .kicker { margin: 0 0 10px; font-size: 15px; letter-spacing: 0.08em; color: var(--lake); }
.legal h1, .legal h2, .legal h3 { font-weight: 500; text-wrap: balance; scroll-margin-top: 90px; color: var(--ink); }
.legal h1 { margin: 0 0 14px; font-size: clamp(34px, 4.8vw, 48px); line-height: 1.15; }
.legal h2 { margin: 2.4em 0 0.7em; padding-top: 1em; border-top: 1px solid var(--hair); font-size: 24px; line-height: 1.3; }
.legal h3 { margin: 1.8em 0 0.45em; font-size: 19px; font-weight: 600; line-height: 1.35; }
.zh-page .legal h1 { font-family: var(--zh); font-size: clamp(28px, 4.2vw, 36px); line-height: 1.35; letter-spacing: 0.06em; }
.zh-page .legal h2 { font-size: 20px; letter-spacing: 0.04em; line-height: 1.5; }
.zh-page .legal h3 { font-size: 17.5px; letter-spacing: 0.02em; line-height: 1.6; }
.zh-page .legal p, .zh-page .legal li { word-break: normal; line-break: strict; }
.legal p, .legal ul, .legal ol { margin: 0 0 1em; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: 0.4em 0; }
.legal li::marker { color: var(--stone); }
.legal strong { font-weight: 600; }
.legal .meta { margin: 0 0 6px; color: var(--stone); font-size: 0.9em; }
.legal .note { margin: 18px 0 2.4em; padding: 2px 0 2px 14px; border-left: 2px solid var(--hair); color: var(--stone); font-size: 0.88em; }
.legal .note strong { color: var(--ink); font-weight: 500; }
.legal .lede { font-size: 1.15em; line-height: 1.6; margin: 0 0 22px; }
.legal .contact { margin: 0 0 6px; }
.legal .email { font-size: clamp(24px, 6vw, 34px); line-height: 1.2; text-decoration-color: var(--ink); }
.legal .callout { margin: 2em 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--ink); }
.legal details { border-top: 1px solid var(--hair); padding: 14px 0; }
.legal details:last-of-type { border-bottom: 1px solid var(--hair); }
.legal summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; cursor: pointer; list-style: none; font-weight: 500; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; flex: none; color: var(--stone); font-weight: 400; }
.legal details[open] summary::after { content: "\2212"; }
.legal details > p { margin: 10px 0 4px; }
.legal .who { margin-top: 3em; color: var(--stone); font-size: 0.9em; }
@media print { .top, footer { display: none; } .legal { padding: 0; width: auto; } }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9em; margin-bottom: 1em; }
.legal th, .legal td { border-bottom: 1px solid var(--hair); padding: 8px 6px; text-align: left; vertical-align: top; }

/* 部落格預覽（?preview=…，HW-392）：頁面頂端一條，提醒這篇還沒公開 */
.preview-banner { position: sticky; top: 0; z-index: 50; padding: 10px 16px; background: #B5470F; color: #fff; text-align: center; font: 600 15px/1.5 var(--zhs); letter-spacing: 0.06em; }
