:root {
  --bg: #F2EEE4;
  --bg-2: #ECE6D7;
  --surface: #FBFAF5;
  --surface-2: #ECE6D7;
  --border: #C9C0A8;
  --border-soft: rgba(47, 107, 35, 0.22);
  --green: #2F6B23;
  --green-dark: #1F4A17;
  --green-mute: #5C6B57;
  --text: #1A2417;
  --text-mute: #5C6B57;
  --paper: #FBFAF5;
  --ink: #1A2417;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(47, 107, 35, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
}

nav.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 245, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

nav.top .row,
footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand,
footer .word-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img,
footer .word-row img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.brand .word,
footer .word-row .name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand .word::after,
footer .word-row .name::after {
  content: ".";
  color: var(--green);
  font-weight: 800;
}

.nav-links,
footer .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-mute);
}

.nav-links a:hover,
footer a:hover {
  color: var(--text);
}

.language-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-mute);
  transform: translateY(-40%);
  pointer-events: none;
}

.language-select {
  appearance: none;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.8);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 30px 10px 13px;
  min-width: 116px;
}

.language-select:focus-visible {
  outline: 2px solid rgba(47, 107, 35, 0.28);
  outline-offset: 2px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: -45% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse at 28% 24%, rgba(47, 107, 35, 0.10), transparent 55%),
    radial-gradient(ellipse at 72% 30%, rgba(47, 107, 35, 0.12), transparent 50%);
  pointer-events: none;
}

.legal-hero .wrap {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.7);
  color: var(--green-mute);
  font-weight: 700;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 107, 35, 0.10);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 22px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

html[lang="zh"] .legal-hero h1 {
  max-width: 940px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
}

.legal-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-mute);
  font-size: 18px;
}

main {
  width: min(100% - 40px, 920px);
  margin: 54px auto 86px;
}

.last-updated {
  display: inline-flex;
  margin: 0 0 26px;
  padding: 7px 12px;
  border: 1px solid rgba(47, 107, 35, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(47, 107, 35, 0.10);
  font-size: 13px;
  font-weight: 700;
}

section {
  margin-bottom: 22px;
  padding: 28px;
  background: rgba(251, 250, 245, 0.95);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: 0 28px 70px -46px rgba(60, 50, 30, 0.18);
}

h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 12px;
  color: var(--text-mute);
}

p:last-child,
section > :last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text);
}

main a {
  color: var(--green);
  border-bottom: 1px solid rgba(47, 107, 35, 0.25);
  font-weight: 700;
}

ul,
ol {
  padding-left: 22px;
  margin: 0 0 12px;
  color: var(--text-mute);
}

li {
  margin-bottom: 8px;
}

.step-block,
.note {
  background: rgba(236, 230, 215, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px 20px;
}

.note {
  border-left: 4px solid var(--green);
  color: var(--text-mute);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(236, 230, 215, 0.6);
  border: 1px solid var(--border-soft);
  margin-bottom: 12px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(47, 107, 35, 0.18);
  font-size: 14px;
}

.data-table th {
  color: #FBFAF5;
  background: var(--green);
  font-weight: 800;
}

.data-table td {
  color: var(--text-mute);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.deleted {
  color: #C0392B;
  font-weight: 800;
}

.retained {
  color: var(--green);
  font-weight: 800;
}

footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 0;
  color: var(--text-mute);
  font-size: 13px;
}

footer .row {
  align-items: flex-start;
  min-height: 0;
}

footer .word-row {
  margin-bottom: 8px;
}

footer .word-row img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

footer .word-row .name {
  color: var(--text);
  font-size: 15px;
}

@media (max-width: 720px) {
  .wrap,
  main {
    width: min(100% - 28px, 920px);
  }

  nav.top .row,
  footer .row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .legal-hero {
    padding: 52px 0 38px;
  }

  section {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
