:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  background: #0b0d0a;
  color: #f1eee4;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #0b0d0a;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #d7ef70;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 4px;
  background: #d7ef70;
  color: #11140d;
  transform: translateY(-150%);
}

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

.legal-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 22px max(44px, env(safe-area-inset-bottom));
}

.legal-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid #34382f;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(215, 239, 112, 0.4);
  border-radius: 8px;
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow,
.updated {
  margin: 0;
  color: #b8b2a4;
  font-size: 13px;
  line-height: 1.55;
}

.legal-header strong {
  display: block;
  color: #f1eee4;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 22px;
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.legal-nav a,
.legal-footer a,
.inline-link {
  color: #d7ef70;
  text-underline-offset: 4px;
}

.legal-nav a[aria-current="page"] {
  color: #f1eee4;
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.legal-main {
  min-width: 0;
  padding-top: 42px;
  overflow-wrap: anywhere;
}

.legal-main h1 {
  max-width: 16ch;
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 52px;
  font-weight: 550;
  line-height: 1.16;
}

.lede {
  max-width: 42em;
  margin: 18px 0 0;
  color: #d4d0c5;
  font-size: 18px;
  line-height: 1.8;
}

.updated {
  margin-top: 13px;
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid #2b2f28;
}

.legal-section h2 {
  margin: 0 0 13px;
  color: #f1eee4;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-section h3 {
  margin: 24px 0 8px;
  color: #ebe7dc;
  font-size: 17px;
  line-height: 1.5;
}

.legal-section p,
.legal-section li {
  color: #cec9bd;
  font-size: 16px;
  line-height: 1.82;
}

.legal-section p {
  margin: 0 0 13px;
}

.legal-section ul,
.legal-section ol {
  margin: 0;
  padding-left: 1.45em;
}

.legal-section li + li {
  margin-top: 8px;
}

.notice {
  margin-top: 24px;
  padding: 18px 0 18px 18px;
  border-left: 3px solid #8f9d4f;
  color: #e0dccf;
  line-height: 1.75;
}

.contact-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid #d7ef70;
  border-radius: 6px;
  color: #d7ef70;
  text-decoration: none;
}

.contact-unavailable {
  color: #e2c9a5;
}

.legal-footer {
  padding-top: 28px;
  color: #aaa598;
  font-size: 14px;
  line-height: 1.7;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .legal-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .legal-main {
    padding-top: 32px;
  }

  .legal-main h1 {
    font-size: 38px;
  }
}

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