:root {
  --ink: #123036;
  --ink-soft: #4c6265;
  --teal: #075f70;
  --teal-deep: #033f4d;
  --teal-pale: #e7f3f2;
  --gold: #d99a3e;
  --gold-pale: #f8edda;
  --paper: #fbfaf5;
  --white: #ffffff;
  --line: #d9e3df;
  --shadow: 0 28px 70px rgba(10, 62, 70, 0.1);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 154, 62, 0.08), transparent 23rem),
    linear-gradient(rgba(7, 95, 112, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 2rem, auto;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: rgba(7, 95, 112, 0.08);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.masthead {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(7, 95, 112, 0.12);
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 280px;
  max-width: calc(100vw - 100px);
  height: auto;
}

.print-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(7, 95, 112, 0.24);
  border-radius: 999px;
  color: var(--teal);
  background: transparent;
  font: 600 14px var(--sans);
  cursor: pointer;
  transition: 180ms ease;
}

.print-button:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.print-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 6vw;
  align-items: center;
  max-width: 1240px;
  min-height: 520px;
  margin: 0 auto;
  padding: 86px 5vw 92px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 24px;
  right: -6vw;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(7, 95, 112, 0.12);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 93px;
  right: 6vw;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(217, 154, 62, 0.22);
  border-radius: 50%;
  content: "";
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 22px;
  color: var(--teal-deep);
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--teal);
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-top: 35px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-meta span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.hero-stamp {
  position: relative;
  display: grid;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(7, 95, 112, 0.4);
  border-radius: 50%;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 9px var(--paper), inset 0 0 0 10px rgba(7, 95, 112, 0.16);
  text-align: center;
  place-content: center;
  transform: rotate(4deg);
}

.hero-stamp strong {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.hero-stamp span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4em;
}

.content-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 830px);
  gap: 60px;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5vw 110px;
}

.table-of-contents {
  position: sticky;
  top: 116px;
  align-self: start;
  padding-top: 15px;
}

.table-of-contents > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.table-of-contents nav {
  display: grid;
  border-left: 1px solid var(--line);
}

.table-of-contents a {
  position: relative;
  padding: 6px 0 6px 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: 180ms ease;
}

.table-of-contents a::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -1px;
  width: 2px;
  background: transparent;
  content: "";
}

.table-of-contents a:hover,
.table-of-contents a.is-active {
  color: var(--teal);
}

.table-of-contents a.is-active::before {
  background: var(--gold);
}

.policy {
  min-width: 0;
}

.notice {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 30px 34px;
  border: 1px solid rgba(7, 95, 112, 0.12);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notice > span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font: italic 700 20px Georgia, serif;
  place-items: center;
}

.notice p {
  margin: -4px 0 0;
}

.policy-group {
  margin-top: 100px;
}

.policy-group > h2 {
  margin: 7px 0 52px;
  color: var(--teal-deep);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.numbered-section {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 28px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.section-number {
  color: var(--gold);
  font: 400 28px/1 var(--serif);
}

.numbered-section h3 {
  margin: -8px 0 20px;
  color: var(--teal-deep);
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.02em;
}

.numbered-section p {
  margin: 0 0 18px;
}

.policy-list {
  margin: 0;
  padding: 0;
  counter-reset: policy-item;
  list-style: none;
}

.policy-list > li {
  position: relative;
  margin-bottom: 22px;
  padding-left: 38px;
  counter-increment: policy-item;
}

.policy-list > li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  content: counter(policy-item);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.policy-list ul {
  padding-left: 22px;
}

.service-card {
  margin-top: 20px;
  padding: 24px 26px;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
}

.service-card h4,
.service-card h5 {
  margin: 0;
  color: var(--teal-deep);
}

.service-card h4 {
  font-family: var(--serif);
  font-size: 21px;
}

.service-card h5 {
  margin-top: 18px;
  font-size: 15px;
}

.service-card p {
  margin: 6px 0 0;
  color: #485957;
  font-size: 15px;
}

.action-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.action-card > div,
.action-card > a {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 115px;
  padding: 24px;
  text-decoration: none;
}

.action-card > a {
  color: var(--white);
  background: var(--teal);
  transition: 180ms ease;
}

.action-card > a:hover {
  background: var(--teal-deep);
}

.action-card span {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.action-card strong {
  font-size: 15px;
  line-height: 1.6;
}

.security-group {
  padding: 55px;
  border-radius: 4px;
  color: #e9f4f2;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 154, 62, 0.2), transparent 24rem),
    var(--teal-deep);
  box-shadow: var(--shadow);
}

.security-group > h2 {
  color: var(--white);
}

.security-warning {
  margin-bottom: 35px;
  padding: 22px 24px;
  border: 1px solid rgba(240, 184, 90, 0.42);
  color: var(--white);
  background: rgba(217, 154, 62, 0.08);
  font-family: var(--serif);
  font-size: 19px;
}

.security-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.security-list span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 17px;
}

.document-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.document-footer p {
  margin: 0;
}

.document-footer a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-stamp {
    opacity: 0;
    animation: reveal 650ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    transform: translateY(18px);
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 240ms;
  }

  .hero-stamp {
    animation-delay: 180ms;
  }

  @keyframes reveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 160px;
  }

  .hero-stamp {
    width: 150px;
    height: 150px;
  }

  .hero-stamp strong {
    font-size: 31px;
  }

  .content-grid {
    display: block;
    max-width: 830px;
  }

  .table-of-contents {
    position: relative;
    top: auto;
    z-index: 10;
    overflow-x: auto;
    margin: 0 0 40px;
    padding: 0 0 12px;
    scrollbar-width: thin;
  }

  .table-of-contents > p {
    display: none;
  }

  .table-of-contents nav {
    display: flex;
    width: max-content;
    border: 0;
  }

  .table-of-contents a {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
  }

  .table-of-contents a::before {
    inset: auto 8px -1px;
    width: auto;
    height: 2px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
    line-height: 1.85;
  }

  .masthead {
    min-height: 70px;
    padding: 0 20px;
  }

  .brand img {
    width: 245px;
  }

  .print-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    justify-content: center;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 64px 20px 68px;
  }

  .hero::before {
    top: 130px;
    right: -220px;
  }

  .hero::after {
    top: 165px;
    right: -160px;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: clamp(45px, 14vw, 64px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-meta {
    margin-top: 26px;
  }

  .hero-stamp {
    display: none;
  }

  .content-grid {
    padding: 0 20px 75px;
  }

  .table-of-contents {
    margin-right: -20px;
  }

  .notice {
    display: block;
    padding: 25px 22px;
  }

  .notice > span {
    margin-bottom: 18px;
  }

  .policy-group {
    margin-top: 75px;
  }

  .policy-group > h2 {
    margin-bottom: 35px;
    font-size: 34px;
  }

  .numbered-section {
    display: block;
    padding: 34px 0;
  }

  .section-number {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .numbered-section h3 {
    margin-top: 0;
    font-size: 24px;
  }

  .policy-list > li {
    padding-left: 33px;
  }

  .service-card {
    margin-left: -33px;
    padding: 22px 20px;
  }

  .action-card {
    grid-template-columns: 1fr;
  }

  .security-group {
    margin-right: -8px;
    margin-left: -8px;
    padding: 35px 28px;
  }

  .security-list li {
    grid-template-columns: 36px 1fr;
  }

  .document-footer {
    display: grid;
    gap: 12px;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .reading-progress,
  .masthead,
  .hero-stamp,
  .table-of-contents,
  .document-footer a {
    display: none;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 12mm;
  }

  .hero h1 {
    color: #000;
    font-size: 34pt;
  }

  .content-grid {
    display: block;
    padding: 0;
  }

  .notice,
  .security-group {
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  .security-group {
    padding: 10mm;
    border: 1px solid #777;
  }

  .security-group > h2,
  .security-warning {
    color: #000;
  }

  .numbered-section,
  .service-card,
  .action-card,
  .security-list li {
    break-inside: avoid;
  }
}
