/* ==========================================================================
   微考牌官網 — 香港保險持牌考試 IIQE 刷題小程序
   風格：編輯式極簡（暖紙底 + 陶土橙），參考 fulilab 氣質
   ========================================================================== */

:root {
  --paper: #FBF6EF;
  --cream: #F4EADB;
  --card: #FFFFFF;
  --ink: #2A1B12;
  --ink-soft: #3D2B1F;
  --muted: #6B5746;
  --accent: #B4540A;
  --accent-strong: #8F3F06;
  --accent-soft: #E0913A;
  --border: #EADFCF;
  --dark: #241510;
  --darker: #1B100B;
  --dark-border: #3A2A1C;
  --dark-text: #F6EDE0;
  --dark-muted: #C9B7A6;
  --dark-faint: #8A7866;

  --font-serif: "Noto Serif HK", "Songti TC", "PMingLiU", serif;
  --font-sans: "Noto Sans HK", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1312px;
  --shadow-card: 0 1px 2px rgba(42, 27, 18, 0.04), 0 8px 24px rgba(42, 27, 18, 0.06);
  --shadow-phone: 0 24px 48px -12px rgba(36, 21, 16, 0.28), 0 4px 12px rgba(36, 21, 16, 0.12);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; margin: 0; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

hr { border: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.container-narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(180, 84, 10, 0.5);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-outline {
  background: var(--card);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn-outline:hover { background: #FDF4EA; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-lg { padding: 17px 40px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px rgba(42, 27, 18, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* 語言切換（簡體 / 繁體） */
.lang-switch {
  display: inline-flex;
  flex: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch button + button { border-left: 1px solid var(--border); }
.lang-switch button.active { background: var(--accent); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 40px; height: 40px; display: inline-flex; flex: none; }
.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(42, 27, 18, 0.18);
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav > a:not(.btn) {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav > a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
  padding-block: 88px 80px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 640px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.trust-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* 手機展示：設計稿自帶機身外框，此處不再疊加第二層框，僅保留投影 */
.phone {
  width: 300px;
}
.phone img {
  display: block;
  filter: drop-shadow(0 18px 34px rgba(42, 27, 18, 0.3));
}

.phone-sm {
  width: 100%;
  max-width: 264px;
  margin-inline: auto;
}
.phone-sm img {
  display: block;
  filter: drop-shadow(0 12px 24px rgba(42, 27, 18, 0.24));
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }

.section-cream { background: var(--cream); }

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}
.section-dark h2 { color: var(--dark-text); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.eyebrow-light { color: var(--accent-soft); }

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 36em;
}
.section-dark .section-sub { color: var(--dark-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.feature-card h3 { font-size: 22px; font-weight: 600; }
.feature-card p { font-size: 15px; color: var(--muted); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.step-card h3 { font-size: 22px; font-weight: 600; }
.step-card p { font-size: 15px; color: var(--muted); }

/* Screens */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.screen-item figcaption {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Reviews (dark) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1.1;
}
.stat dd { font-size: 15px; color: var(--dark-muted); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-text);
}
.testimonial footer { font-size: 14px; color: var(--dark-muted); }

/* Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-name { font-size: 22px; font-weight: 700; }

.plan-tag {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.plan-tag-free { border-color: var(--border); color: var(--muted); }

.plan-badge {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.plan-price {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}

.plan-per { color: var(--accent); font-size: 15px; margin-top: -6px; }
.plan-desc { font-size: 15px; color: var(--muted); }

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-block: 10px;
}

.plan-featured {
  border: 2px solid var(--accent);
  background: #FBF1E8;
}
.plan-featured .plan-divider { background: #E8D8C4; }

.plan-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.plan-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--ink-soft);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path d="M6 10.5l2.5 2.5L14 7" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 20px 20px no-repeat;
}

.plan-note {
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
  text-align: center;
}
.plan .btn { margin-top: auto; }
.plan-list { margin-bottom: 16px; }

/* 權益對照表 */
.benefits { margin-top: 72px; }
.benefits-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.table-scroll {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.benefits-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.benefits-table thead th {
  padding: 18px 20px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}
.benefits-table thead th:not(:first-child),
.benefits-table tbody td { text-align: center; }
.benefits-table thead th:first-child { text-align: left; }

.benefits-table tbody th {
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: left;
  white-space: nowrap;
}

.benefits-table tbody td {
  padding: 16px 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.benefits-table tbody th {
  border-top: 1px solid var(--border);
}

.benefits-table .col-hot { background: #FBF1E8; }
.benefits-table thead .col-hot { color: var(--accent); }

.ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D8CCC0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

/* 購買流程 + 客服二維碼 */
.buy-flow {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 56px;
}

.buy-title { font-size: 28px; margin-block: 8px 24px; }

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: flow;
}

.flow-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.flow-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.flow-steps strong { font-size: 16px; color: var(--ink); }
.flow-steps p { font-size: 14px; color: var(--muted); margin-top: 2px; }

.buy-note {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.benefits-sub {
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.cs-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cs-card img {
  width: 200px;
  height: 200px;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(42, 27, 18, 0.22));
}

.cs-card figcaption { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* FAQ */
.section-faq { padding-top: 0; }

.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 28px;
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-card); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }

.faq-item > p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--muted);
  max-width: 56em;
}

/* Final CTA */
.section-cta { padding-block: 96px 88px; }

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.cta-title {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
}

.cta-sub { font-size: 18px; color: var(--dark-muted); }

.qr-card {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.qr-card img {
  width: 220px;
  height: 220px;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}
.qr-card figcaption { font-size: 14px; color: var(--dark-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--darker);
  color: var(--dark-muted);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand { max-width: 300px; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-text);
}
.footer-tag { font-size: 14px; line-height: 1.6; }

.footer-cols { display: flex; gap: 80px; flex-wrap: wrap; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.col-head {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--dark-text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--dark-border);
  padding-top: 28px;
  font-size: 13px;
  color: var(--dark-faint);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--dark-muted); }

.footer-filing {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-border);
  font-size: 12.5px;
  color: var(--dark-faint);
  line-height: 1.6;
}
/* 備案號連結：維持頁腳低調配色，hover 時先提亮，避免變成突兀嘅藍色下劃線 */
.footer-filing a {
  text-decoration: underline;
  text-decoration-color: var(--dark-border);
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.footer-filing a:hover { color: var(--dark-muted); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { gap: 48px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .buy-flow { grid-template-columns: 1fr; gap: 40px; }
  .cs-card { justify-self: center; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 64px 56px;
    gap: 48px;
  }
  .hero-copy { max-width: 560px; }
  .hero-visual { display: flex; justify-content: center; }

  .feature-grid,
  .plans-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .testimonials { grid-template-columns: 1fr; }

  .section { padding-block: 72px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .header-actions { gap: 12px; }
  .lang-switch button { padding: 6px 10px; font-size: 12.5px; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(42, 27, 18, 0.12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 16px;
  }
  .site-nav > a:not(.btn):first-of-type { border-top: none; }
  .nav-cta {
    margin: 16px 24px;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .screens-grid { grid-template-columns: 1fr; }
  .phone { width: min(300px, 78vw); }
  .feature-card, .step-card, .plan { padding: 28px 24px; }
  .faq-item { padding-inline: 20px; }
  .footer-cols { gap: 36px; }
  .buy-flow { padding: 32px 24px; }
  .buy-title { font-size: 24px; }
  .benefits { margin-top: 56px; }
  .buy-flow { margin-top: 56px; }
}

/* ---------- 法規 / 關於頁 ---------- */
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal-wrap .eyebrow {
  font-size: 13px; letter-spacing: .14em; color: var(--accent);
  text-transform: uppercase; font-weight: 700; margin-bottom: 12px;
}
.legal-wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 10px;
}
.legal-wrap .lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-article h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 40px 0 14px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-article h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--accent);
}
.legal-article p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 12px 0;
}
.legal-article ul { margin: 12px 0; padding-left: 22px; }
.legal-article li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 6px 0;
  list-style: disc;
}
.legal-article strong { color: var(--ink); }
.legal-article a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .15s ease;
}
.legal-article a:hover { border-bottom-color: var(--accent); }
.legal-article .updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .legal-wrap { padding: 32px 16px 72px; }
}
