@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #26212a;
  --muted: #706a73;
  --accent: #c62370;
  --line: #e9e1e5;
  --surface: #fff;
  --page: #faf7f8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 16px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { width: min(100% - 48px, 1280px); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.header-inner { height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 112px; height: auto; display: block; }
.header-link { color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-link span { margin-left: 8px; color: var(--accent); font-size: 18px; }
.header-link:hover, .footer-inner a:hover, .breadcrumb a:hover { color: var(--accent); }

.page-shell { width: min(100% - 48px, 1280px); margin: auto; }
.breadcrumb { display: flex; align-items: center; gap: 12px; padding-top: 32px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.hero { padding: 66px 0 75px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 12px 0 10px; font-size: clamp(38px, 5vw, 66px); letter-spacing: -.045em; line-height: 1.2; font-weight: 800; }
.title-mark { color: var(--accent);margin-left: 1vw;}

.content-grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start; padding-bottom: 100px; }
.toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.toc-inner { border-top: 2px solid var(--ink); padding-top: 18px; }
.toc-label { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.toc-label span { color: var(--accent); }
.toc nav { display: grid; gap: 2px; }
.toc nav a { display: flex; align-items: baseline; gap: 10px; padding: 5px 8px; border-radius: 6px; color: #6b646c; text-decoration: none; font-size: 13px; line-height: 1.6; }
.toc nav a span { flex: 0 0 22px; color: #ad9ca6; font-size: 11px; font-variant-numeric: tabular-nums; }
.toc nav a:hover, .toc nav a:focus-visible { background: #f5e8ee; color: var(--accent); }

.terms-content { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(46,25,37,.045); padding: clamp(24px, 4vw, 64px); }
.intro { margin-bottom: 32px; padding: 20px 24px; border-radius: 14px; background: #fcf4f8; color: #4b4049; }
.intro p { margin: 0; }
.terms-section { border-top: 1px solid var(--line); padding: 36px 0 38px; scroll-margin-top: 100px; }
.terms-section:last-child { padding-bottom: 0; }
.section-heading { display: flex; align-items: baseline; gap: 18px; margin-bottom: 17px; }
.section-number { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.section-heading h2 { margin: 0; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; letter-spacing: -.03em; }
.section-body { color: #514b52; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.section-body p { margin: 0 0 16px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body ol { margin: 8px 0 22px; padding-left: 1.7em; }
.section-body ol ol { margin: 8px 0; }
.section-body li { padding-left: 5px; margin: 0 0 11px; }
.section-body li::marker { color: var(--accent); font-weight: 700; }
.section-body ol { list-style: none; counter-reset: terms-item; padding-left: 0; }
.section-body ol > li { counter-increment: terms-item; position: relative; padding-left: 2.7em; }
.section-body ol > li::before { content: counter(terms-item); position: absolute; left: 0; top: .22em; width: 1.85em; height: 1.85em; border-radius: 50%; background: #f8e3ed; color: var(--accent); display: grid; place-items: center; font-size: .78em; font-weight: 800; line-height: 1; }
.section-body ol ol { list-style: decimal; padding-left: 1.7em; }
.section-body ol ol > li { padding-left: 5px; }
.section-body ol ol > li::before { content: none; }
.section-body ol ol > li::marker { color: #514b52; font-weight: 400; }
.section-body strong { font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 90px; justify-content: flex-start; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-inner span { margin-right: auto; }
.footer-inner a { text-decoration: none; }

@media (max-width: 850px) {
  .content-grid { display: block; padding-bottom: 64px; }
  .toc { position: relative; top: auto; max-height: none; overflow: visible; margin-bottom: 28px; }
  .toc nav { display: flex; overflow-x: auto; gap: 8px; padding: 2px 2px 10px; scrollbar-width: thin; }
  .toc nav a { flex: 0 0 auto; display: block; border: 1px solid var(--line); background: #fff; padding: 7px 12px; white-space: nowrap; }
  .toc nav a span { margin-right: 6px; }
  .hero { padding: 45px 0 52px; }
}

@media (max-width: 600px) {
  .header-inner, .footer-inner, .page-shell { width: min(100% - 32px, 1280px); }
  .header-inner { height: 64px; }
  .brand img { width: 96px; }
  .breadcrumb { padding-top: 20px; }
  .hero { padding: 40px 0 44px; }
  .terms-content { border-radius: 14px; padding: 20px; }
  .intro { padding: 16px; font-size: 14px; }
  .terms-section { padding: 28px 0; }
  .section-heading { gap: 11px; }
  .section-body { font-size: 14px; line-height: 1.9; }
  .footer-inner { min-height: 96px; flex-wrap: wrap; justify-content: flex-start; align-content: center; column-gap: 20px; row-gap: 0; }
  .footer-inner span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#terms-chapters { display: none; }
#back-to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 24px; text-decoration: none; box-shadow: 0 6px 22px #c6237055; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
#back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.site-footer { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 850px) { .toc nav { display: none; } #terms-chapters { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; } .toc { position: static; } }
