:root {
  --paper: #f5f5f0;
  --paper-deep: #e9e7df;
  --ink: #1c1c1e;
  --muted: #64625c;
  --bronze: #8a6748;
  --bronze-soft: #d8c4ad;
  --line: #cbc7bd;
  --white: #fffefa;
  --max: 1180px;
  --reading: 72ch;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); line-height: 1.72; }
::selection { color: var(--white); background: var(--bronze); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--bronze); }
a:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 14px; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); }
.masthead.compact { min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 13px; font-weight: 750; }
.brand span:last-child { display: grid; line-height: 1.25; }
.brand strong { letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
nav a[aria-current="page"] { border-color: var(--bronze); color: var(--bronze); }

main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 610px; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 9vw, 140px); align-items: center; padding: 78px 0 70px; }
.hero h1, .action-page h1, .support-page h1, .document-title h1 { margin: 0; max-width: 11em; font-size: clamp(50px, 7.4vw, 98px); line-height: .98; letter-spacing: -.04em; font-weight: 760; text-wrap: balance; }
.hero-copy > p, .action-page > header p, .support-page > header p { max-width: 36rem; margin: 34px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.route-list { align-self: end; margin-bottom: 12px; border-top: 1px solid var(--ink); }
.route-list a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.route-list a span:last-child { font-size: 23px; color: var(--bronze); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.route-list a:hover span:last-child { transform: translateX(5px); }

.identity-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; padding: 52px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.identity-band h2, .principles > h2 { margin: 0 0 16px; font-size: 15px; }
.identity-band p { margin: 3px 0; color: var(--muted); }
.identity-band .company-name { color: var(--ink); font-size: 21px; font-weight: 700; }
.identity-band dl { margin: 0; }
.identity-band dl div, .support-contact dl div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; }
dd, p, li, a { overflow-wrap: anywhere; }
.principles { padding: 100px 0 116px; }
.principle-lines article { display: grid; grid-template-columns: minmax(190px, .65fr) 1.35fr; gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.principle-lines h3, .principle-lines p { margin: 0; }
.principle-lines p { color: var(--muted); max-width: var(--reading); }

.document-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(50px, 9vw, 130px); padding: 78px 0 120px; align-items: start; }
.document-index { position: sticky; top: 28px; display: grid; gap: 8px; font-size: 13px; }
.document-index p { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-weight: 750; }
.document-index a { color: var(--muted); text-decoration: none; }
.document-index a:hover { color: var(--bronze); }
.legal-document { max-width: 800px; }
.document-title { padding-bottom: 60px; border-bottom: 1px solid var(--ink); }
.document-title h1 { max-width: 10ch; font-size: clamp(46px, 6vw, 80px); }
.document-title > p:last-child { max-width: var(--reading); margin: 34px 0 0; font-size: 18px; color: var(--muted); }
.effective-date { margin: 22px 0 0; color: var(--bronze); font-size: 14px; font-variant-numeric: tabular-nums; }
.legal-document section { scroll-margin-top: 28px; padding: 56px 0 12px; }
.legal-document h2 { margin: 0 0 20px; font-size: 26px; letter-spacing: -.02em; }
.legal-document h3 { margin: 0 0 6px; font-size: 16px; }
.legal-document p, .legal-document li { color: #45443f; }
.legal-document ul { padding-left: 1.25em; }
.data-table { border-top: 1px solid var(--ink); margin: 26px 0; }
.data-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.data-table p { margin: 0; }
.provider-list { margin: 26px 0; border-top: 1px solid var(--ink); }
.provider-list div { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }

.action-page, .support-page { padding: 86px 0 120px; }
.action-page > header, .support-page > header { display: grid; grid-template-columns: 1fr .75fr; gap: 80px; align-items: end; padding-bottom: 70px; border-bottom: 1px solid var(--ink); }
.action-page h1, .support-page h1 { font-size: clamp(46px, 6.2vw, 82px); }
.action-steps { margin-left: 25%; padding: 62px 0 96px; counter-reset: steps; }
.action-steps article { counter-increment: steps; display: grid; grid-template-columns: 70px minmax(160px, .65fr) 1.35fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.action-steps article::before { content: counter(steps, decimal-leading-zero); color: var(--bronze); font-variant-numeric: tabular-nums; }
.action-steps h2, .action-steps p { margin: 0; }
.action-steps h2 { font-size: 18px; }
.action-steps p { color: var(--muted); }
.notice { max-width: 850px; margin-left: auto; padding: 38px 42px; background: var(--paper-deep); border-radius: 14px; box-shadow: 0 16px 42px rgba(28,28,30,.08); }
.notice h2 { margin: 0 0 12px; font-size: 22px; }
.notice p { margin: 0; color: var(--muted); }

.support-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 72px 0 96px; }
.support-contact h2 { margin: 0 0 28px; font-size: 26px; }
.support-contact p { color: var(--muted); max-width: 42rem; }
.primary-link { display: inline-flex; gap: 20px; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; }
.support-contact dl { margin: 0; }
.support-topics { padding: 65px 0 20px; border-top: 1px solid var(--ink); }
.support-topics > h2 { margin: 0 0 36px; }
.support-topics > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; }
.support-topics article { padding: 25px 0; border-top: 1px solid var(--line); }
.support-topics h3, .support-topics p { margin: 0; }
.support-topics p { margin-top: 8px; color: var(--muted); }

footer { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 34px 0 46px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
footer p:last-child { display: flex; gap: 20px; }

@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  .masthead, main, footer { width: min(100% - 32px, var(--max)); }
  .masthead { min-height: auto; padding: 18px 0 16px; align-items: flex-start; }
  .masthead { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand small { display: none; }
  nav { width: 100%; gap: 18px; font-size: 12px; flex-wrap: wrap; justify-content: flex-start; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 66px; padding: 74px 0 60px; }
  .hero h1, .action-page h1, .support-page h1, .document-title h1 { max-width: none; font-size: clamp(44px, 13vw, 58px); letter-spacing: -.035em; }
  .identity-band, .action-page > header, .support-page > header, .support-contact { grid-template-columns: 1fr; gap: 38px; }
  .identity-band { padding: 42px 0; }
  .identity-band dl div, .support-contact dl div { grid-template-columns: 88px 1fr; }
  .principles { padding: 78px 0 90px; }
  .principle-lines article { grid-template-columns: 1fr; gap: 8px; }
  .document-layout { grid-template-columns: 1fr; padding: 58px 0 90px; }
  .document-index { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .document-index p { grid-column: 1 / -1; }
  .data-table > div, .provider-list div { grid-template-columns: 1fr; gap: 5px; }
  .action-page, .support-page { padding: 64px 0 90px; }
  .action-page > header, .support-page > header { padding-bottom: 50px; }
  .action-steps { margin-left: 0; padding: 46px 0 72px; }
  .action-steps article { grid-template-columns: 45px 1fr; }
  .action-steps article p { grid-column: 2; }
  .notice { padding: 28px 24px; }
  .support-contact { padding: 52px 0 76px; }
  .support-topics > div { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
