:root {
  color-scheme: light;
  --coral: #f8836b;
  --coral-strong: #ff7e5f;
  --orange: #feb47b;
  --peach: #fff5e0;
  --soft-pink: #fdefe6;
  --ice-blue: #f2f7fb;
  --ink: #22252f;
  --muted: #667085;
  --line: #e9ddd3;
  --surface: #ffffff;
  --surface-warm: #fffaf3;
  --shadow: 0 18px 54px rgba(83, 65, 55, 0.12);
  --focus: 0 0 0 3px rgba(248, 131, 107, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 245, 224, 0.96) 0%, rgba(255, 255, 255, 0.96) 44%, rgba(242, 247, 251, 0.92) 100%);
  color: var(--ink);
  font-family:
    ui-rounded,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang TC",
    "PingFang SC",
    "Microsoft JhengHei",
    "Microsoft YaHei",
    sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--coral-strong);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button {
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 0;
  right: 0;
  padding: 0 20px;
  pointer-events: none;
}

.nav-shell {
  width: min(1160px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(102, 112, 133, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 38px rgba(83, 65, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 4px 6px;
}

.brand-mark {
  width: 152px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(248, 131, 107, 0.1);
  color: var(--ink);
  text-decoration: none;
}

.language-switcher {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 3px;
  border: 1px solid rgba(102, 112, 133, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.language-switcher .lang-btn,
.language-switcher button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.86rem;
  font-weight: 750;
  transition: color 180ms ease, background 180ms ease;
}

.language-switcher .lang-btn:hover {
  text-decoration: none;
}

.language-switcher .lang-btn.active,
.language-switcher .lang-btn[aria-current="true"],
.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.brand-link:focus-visible,
.nav-menu a:focus-visible,
.language-switcher .lang-btn:focus-visible,
.menu-toggle:focus-visible,
.legal-document a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(102, 112, 133, 0.18);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.legal-main {
  padding: 126px 20px 84px;
}

.legal-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.legal-document {
  border: 1px solid rgba(102, 112, 133, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 58px);
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--coral-strong);
  font-size: 0.95rem;
  font-weight: 760;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
}

h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
  font-weight: 790;
}

h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  color: #373b48;
  font-size: 1.17rem;
  line-height: 1.25;
  font-weight: 760;
}

h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #4a5060;
  font-size: 1.04rem;
  line-height: 1.3;
  font-weight: 740;
}

p {
  margin-bottom: 15px;
  color: var(--muted);
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.45rem;
  color: var(--muted);
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--ink);
  font-weight: 760;
}

hr {
  margin: 38px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.meta-info,
.contact-box {
  margin: 0 0 28px;
  border: 1px solid rgba(248, 131, 107, 0.2);
  border-left: 4px solid var(--coral-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(242, 247, 251, 0.76));
  padding: 18px 20px;
}

.meta-info p:last-child,
.contact-box p:last-child {
  margin-bottom: 0;
}

.placeholder,
.highlight {
  border-radius: 7px;
  background: var(--soft-pink);
  color: var(--ink);
  padding: 2px 7px;
  font-weight: 760;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid rgba(102, 112, 133, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(83, 65, 55, 0.06);
}

.faq-question {
  min-height: 58px;
  padding: 16px 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fffaf6;
  cursor: pointer;
  font-weight: 760;
  user-select: none;
  transition: background 180ms ease, color 180ms ease;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: rgba(248, 131, 107, 0.1);
  outline: none;
}

.faq-question::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.faq-item.active .faq-question::after {
  transform: rotate(225deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  padding: 0 18px;
  transition: max-height 240ms ease, padding 240ms ease;
}

.faq-item.active .faq-answer {
  max-height: 2200px;
  padding: 16px 18px 18px;
}

.legal-footer {
  padding: 44px 24px 56px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.brand-link--footer {
  padding: 0;
}

.brand-link--footer .brand-mark {
  width: 142px;
  max-height: 36px;
}

.legal-footer p {
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  max-width: 520px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 880px) {
  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .nav-shell {
    min-height: 60px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 102px);
    overflow: auto;
    border: 1px solid rgba(102, 112, 133, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 12px;
  }

  .language-switcher {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .language-switcher .lang-btn {
    flex: 1;
  }

  .legal-main {
    padding: 104px 14px 64px;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 136px;
    max-height: 36px;
  }

  .legal-document {
    padding: 24px 18px;
  }

  h2 {
    margin-top: 34px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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