:root {
  color-scheme: light;
  font-family: "PingFang TC", "Noto Sans TC", sans-serif;
  color: #292922;
  background: #f6f4ef;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; }
a { color: inherit; }

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px;
  border-bottom: 1px solid #dcd9d0;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #292922;
  font: 600 14px/1.1 "PingFang TC", "Noto Sans TC", sans-serif;
  letter-spacing: .16em;
  text-decoration: none;
  white-space: nowrap;
}
.legal-brand img { display: block; width: 40px; height: 40px; }
.legal-brand:hover { opacity: .65; }

.legal-language { display: flex; align-items: center; gap: 10px; color: #666961; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.legal-language select {
  max-width: 145px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #d5d3ca;
  border-radius: 8px;
  background: #fff;
  color: #292922;
  font: 500 14px/1.5 "PingFang TC", "Noto Sans TC", sans-serif;
  cursor: pointer;
}

.legal-main { max-width: 760px; min-height: calc(100vh - 185px); margin: 0 auto; padding: 64px 32px 100px; }
.legal-main h1 { margin: 0 0 34px; font: 500 clamp(1.6rem, 3.2vw, 2.5rem)/1.3 "Songti TC", "Noto Serif TC", serif; letter-spacing: .02em; }
.legal-main article { border-top: 1px solid #dcd9d0; padding-top: 28px; }
.legal-main p { margin: 0 0 23px; color: #46483f; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-line; }
.legal-main h2 { margin: 39px 0 13px; color: #292922; font-size: 21px; line-height: 1.55; }
.legal-main .legal-translation-note { margin: -10px 0 26px; padding: 14px 17px; border-left: 3px solid #59644d; background: #e9e9df; font-size: 15px; line-height: 1.6; }

.legal-footer { display: flex; justify-content: center; gap: 26px; padding: 22px 24px 36px; border-top: 1px solid #dcd9d0; color: #61645b; font-size: 14px; line-height: 1.5; }
.legal-footer a { text-decoration: none; }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #59644d; outline-offset: 3px; }

@media (max-width: 520px) {
  .legal-header { flex-wrap: wrap; padding: 19px 18px; gap: 12px; }
  .legal-brand { gap: 7px; font-size: 14px; }
  .legal-brand img { width: 34px; height: 34px; }
  .legal-language { justify-content: space-between; gap: 8px; width: 100%; }
  .legal-language select { max-width: min(220px, 65%); padding: 0 8px; }
  .legal-main { min-height: calc(100vh - 150px); padding: 42px 22px 75px; }
  .legal-main h1 { margin-bottom: 25px; }
  .legal-main p { font-size: 17px; }
}
