:root {
  color-scheme: light;
  --cream: #fff8e8;
  --paper: #f7efd9;
  --sage-deep: #4b6048;
  --ink: #23301f;
  --muted: #635944;
  --line: rgba(35, 48, 31, 0.16);
  --content: 1160px;
  --shadow: 0 34px 90px rgba(54, 39, 14, 0.32);
  --soft-shadow: 0 18px 44px rgba(65, 50, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.document-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 213, 126, 0.32), transparent 32rem),
    linear-gradient(145deg, #fbf2da 0%, #f2e4bd 46%, #d5dcb4 100%);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #173f58;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8a948, #b98127);
  color: #fff9e9;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.document-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.document-card {
  padding: clamp(32px, 6vw, 64px);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.document-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1.05;
}

.document-card h2 {
  margin: 42px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.75rem;
  line-height: 1.18;
}

.document-card h3 {
  margin: 28px 0 0;
  font-size: 1.18rem;
}

.document-card p,
.document-card li {
  color: var(--muted);
  line-height: 1.65;
}

.document-card ul {
  padding-left: 1.2rem;
}

.document-meta {
  margin: 16px 0 0;
  color: var(--muted);
}

.language-switch {
  position: relative;
  z-index: 10;
  display: inline-block;
  margin-top: 22px;
}

.language-switch details {
  position: relative;
}

.language-switch summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px 0 15px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.74);
  font-size: 0.92rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.language-switch details[open] summary {
  background: var(--ink);
  color: #fff8e8;
}

.language-switch details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.language-switch .locale-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 230px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--soft-shadow);
}

.language-switch .locale-switch-menu a {
  display: grid;
  gap: 2px;
  min-height: 50px;
  align-content: center;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--muted);
  text-decoration: none;
}

.language-switch .locale-switch-menu a:hover,
.language-switch .locale-switch-menu a:focus-visible,
.language-switch .locale-switch-menu a[aria-current="page"] {
  background: rgba(35, 48, 31, 0.09);
  color: var(--ink);
}

.language-switch .locale-switch-menu span {
  font-size: 0.94rem;
  font-weight: 900;
}

.language-switch .locale-switch-menu small {
  color: rgba(99, 89, 68, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
}

.compliance-note {
  padding: 16px 18px;
  border: 1px solid rgba(123, 91, 31, 0.28);
  border-radius: 12px;
  background: rgba(255, 246, 218, 0.72);
  color: var(--muted);
}

.compliance-note li + li {
  margin-top: 6px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 34px 0;
}

.contact-row-single {
  grid-template-columns: 1fr;
}

.contact-block {
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.contact-block h2 {
  margin: 0;
  padding: 0;
  border-top: 0;
  font-size: 1.45rem;
}

.contact-block p {
  margin: 10px 0 0;
}

.contact-block + .contact-block {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.faq-list {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item p {
  margin: 10px 0 0;
}

.site-footer {
  padding: 42px 28px;
  background: rgba(25, 38, 35, 0.96);
  color: rgba(255, 248, 232, 0.84);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content);
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.site-footer a {
  color: #fff7d8;
}

.footer-language-switch {
  position: relative;
  z-index: 5;
}

.footer-language-switch details {
  position: relative;
}

.footer-language-switch summary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 248, 232, 0.3);
  border-radius: 999px;
  padding: 0 11px 0 13px;
  color: rgba(255, 250, 237, 0.86);
  background: rgba(255, 248, 232, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.footer-language-switch summary::-webkit-details-marker {
  display: none;
}

.footer-language-switch summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.footer-language-switch details[open] summary {
  background: rgba(255, 248, 232, 0.16);
  color: #fffdf5;
}

.footer-language-switch details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.footer-language-switch .locale-switch-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(218px, calc(100vw - 56px));
  min-width: 0;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 248, 232, 0.26);
  border-radius: 8px;
  background: rgba(25, 38, 35, 0.98);
  box-shadow: 0 18px 44px rgba(12, 19, 17, 0.34);
}

.footer-language-switch .locale-switch-menu a {
  display: grid;
  gap: 2px;
  min-height: 48px;
  align-content: center;
  border-radius: 6px;
  padding: 7px 10px;
  color: rgba(255, 250, 237, 0.86);
  text-decoration: none;
}

.footer-language-switch .locale-switch-menu a:hover,
.footer-language-switch .locale-switch-menu a:focus-visible,
.footer-language-switch .locale-switch-menu a[aria-current="page"] {
  background: rgba(255, 248, 232, 0.13);
  color: #fffdf5;
}

.footer-language-switch .locale-switch-menu span {
  font-size: 0.84rem;
  font-weight: 900;
}

.footer-language-switch .locale-switch-menu small {
  color: rgba(255, 250, 237, 0.6);
  font-size: 0.68rem;
  font-weight: 800;
}

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

  .contact-block + .contact-block {
    padding-left: 0;
    border-left: 0;
  }

  .document-shell {
    padding: 36px 16px 56px;
  }

  .document-card {
    padding: 32px 22px;
  }

  .footer-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-links {
    margin-left: 0;
  }

  .footer-inner p {
    flex: 0 0 100%;
  }

  .footer-language-switch {
    margin-left: auto;
  }

  .footer-language-switch .locale-switch-menu {
    right: 0;
    left: auto;
  }
}

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