:root {
  --background: #ffffff;
  --foreground: #18181b;
  --muted: #71717a;
  --soft: #f4f4f5;
  --border: #e4e4e7;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --shadow: 0 24px 80px rgba(24, 24, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.11), transparent 32rem),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: auto, 60px 60px, 60px 60px, auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1040px) / 2));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #fbbf24);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.28);
}

.brand-mark span {
  position: absolute;
  display: block;
  background: #fff;
  border-radius: 99px;
}

.brand-mark span:nth-child(1) {
  width: 18px;
  height: 4px;
  transform: rotate(45deg);
}

.brand-mark span:nth-child(2) {
  width: 18px;
  height: 4px;
  transform: rotate(-45deg);
}

.brand-mark span:nth-child(3) {
  right: 7px;
  bottom: 7px;
  width: 6px;
  height: 6px;
}

.locale-toggle {
  min-width: 84px;
  height: 40px;
  padding: 0 14px;
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.locale-toggle:hover {
  color: var(--brand-dark);
  background: #fff;
  border-color: rgba(249, 115, 22, 0.4);
}

.legal-main {
  width: min(920px, calc(100% - 32px));
  margin: 54px auto 80px;
  padding: clamp(28px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-meta {
  margin: 18px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.legal-intro {
  padding: 22px 24px;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 18px;
}

.legal-content section {
  padding-top: 24px;
}

h2 {
  margin: 20px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}

p,
li {
  color: #3f3f46;
  font-size: 16px;
  line-height: 1.82;
}

p {
  margin: 10px 0;
}

ul {
  margin: 10px 0;
  padding-left: 24px;
}

.legal-content a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}

.legal-footer {
  padding: 32px 24px 44px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.legal-footer a {
  margin: 0 8px;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .legal-nav {
    padding-inline: 16px;
  }

  .legal-main {
    margin-top: 24px;
    margin-bottom: 40px;
    border-radius: 20px;
  }

  .legal-intro {
    padding: 18px;
  }

  p,
  li {
    font-size: 15px;
  }
}
