@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;700;900&display=swap');

:root {
  --bg: #f5f0e7;
  --bg-strong: #ecdfca;
  --surface: rgba(255, 252, 247, 0.8);
  --surface-solid: #fffaf1;
  --text-main: #1f2f46;
  --text-sub: #4b5f7a;
  --text-mute: #73839b;
  --brand: #c5842f;
  --brand-strong: #9f6620;
  --accent: #12345b;
  --line: rgba(31, 47, 70, 0.14);
  --line-strong: rgba(31, 47, 70, 0.24);
  --shadow-soft: 0 10px 30px rgba(28, 41, 62, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 820px;
}

html.dark-mode {
  --bg: #0f1b2d;
  --bg-strong: #0f2239;
  --surface: rgba(14, 30, 50, 0.74);
  --surface-solid: #132843;
  --text-main: #eef4ff;
  --text-sub: #c7d5ea;
  --text-mute: #97abc8;
  --brand: #e0ae66;
  --brand-strong: #cf9540;
  --accent: #8fb3e6;
  --line: rgba(238, 244, 255, 0.15);
  --line-strong: rgba(238, 244, 255, 0.25);
  --shadow-soft: 0 16px 34px rgba(4, 8, 14, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(760px 460px at 100% -8%, rgba(197, 132, 47, 0.24), transparent 64%),
    radial-gradient(920px 520px at -12% 18%, rgba(18, 52, 91, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-strong));
  color: var(--text-main);
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(138deg, var(--brand), var(--brand-strong));
  box-shadow: 0 8px 20px rgba(159, 102, 32, 0.35);
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text-main);
}

.page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.page-header {
  text-align: center;
  margin-bottom: 26px;
}

.page-icon {
  font-size: 2.7rem;
}

.page-header h1 {
  margin: 12px 0 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--brand);
}

.update-time {
  font-size: 0.9rem;
  color: var(--text-mute);
}

.intro {
  margin: 14px auto 0;
  max-width: 660px;
  color: var(--text-sub);
  line-height: 1.76;
}

.policy-section {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  margin-bottom: 14px;
}

.policy-section h2 {
  margin: 0 0 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.08rem;
  color: var(--brand);
}

.policy-section p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.8;
  font-size: 0.95rem;
}

.policy-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.8;
}

.policy-section li {
  margin-bottom: 6px;
}

.highlight-box {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--brand) 36%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 14px;
}

.highlight-box h3 {
  margin: 0 0 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.98rem;
  color: var(--brand-strong);
}

.policy-section a {
  color: var(--brand-strong);
  text-underline-offset: 2px;
}

.back-link {
  display: inline-flex;
  margin-top: 16px;
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 700;
}

footer {
  padding: 22px 16px 34px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .site-nav {
    padding: 12px 14px;
  }

  .nav-links {
    display: none;
  }

  .page {
    width: min(var(--max-width), calc(100% - 22px));
    padding-top: 30px;
  }

  .policy-section {
    padding: 18px;
  }
}
