/* =============================================================================
   MetaPlan 官网 — 隐私政策（与首页 / 文档中心品牌视觉对齐）
   ============================================================================= */

.privacy-page {
  --accent-cyan: #003fec;
  --accent-violet: #0036cc;
  --accent-green: #003fec;
  --gradient-brand: linear-gradient(135deg, #003fec, #0036cc);
  --gradient-text: linear-gradient(90deg, #003fec, #0029a8);
  --bg-base: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --text-primary: #0c1929;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --home-page-canvas:
    radial-gradient(ellipse 70% 42% at 100% 6%, rgba(213, 227, 252, 0.38) 0%, rgba(213, 227, 252, 0.12) 36%, transparent 70%),
    radial-gradient(ellipse 48% 42% at 6% 96%, rgba(213, 227, 252, 0.42) 0%, rgba(213, 227, 252, 0.14) 42%, transparent 70%),
    radial-gradient(ellipse 70% 28% at 50% 100%, rgba(230, 238, 253, 0.28), transparent 72%),
    #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--home-page-canvas);
  background-attachment: fixed;
  color: var(--text-primary);
  scrollbar-width: thin;
  scrollbar-color: #e6eefd transparent;
}

.privacy-page::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.privacy-page::-webkit-scrollbar-thumb {
  background: #e6eefd;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.privacy-page::-webkit-scrollbar-thumb:hover {
  background: #d7e3fe;
  background-clip: padding-box;
  border: 2px solid transparent;
}

.privacy-page .page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.privacy-page .navbar {
  position: sticky;
  top: 0;
  flex: 0 0 auto;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.35) blur(18px);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
  border-bottom: none;
  box-shadow: none;
  transform: none !important;
  pointer-events: auto !important;
}

.privacy-page .navbar.is-hidden {
  transform: none !important;
  pointer-events: auto !important;
}

.privacy-page .navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
}

.privacy-page .nav-links a,
.privacy-page .brand-name,
.privacy-page .brand-tag,
.privacy-page .lang-btn {
  color: var(--text-primary);
}

.privacy-page .nav-links a:hover,
.privacy-page .nav-links a:focus-visible,
.privacy-page .nav-docs:hover,
.privacy-page .lang-btn:hover {
  color: #003fec;
}

.privacy-page .nav-links a.is-active,
.privacy-page .nav-docs.is-active {
  color: #003fec;
  font-weight: 650;
}

.privacy-main {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  padding: 1.5rem 0 3rem;
}

.privacy-container {
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
}

.privacy-hero {
  margin: 0 0 1.15rem;
}

.privacy-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #e6eefd;
  color: #003fec;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.privacy-hero h1 {
  margin: 0 0 0.55rem;
  color: #0c1929;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.privacy-hero-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.65;
}

.privacy-article {
  padding: 1.35rem 1.45rem 1.6rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.privacy-article h2 {
  margin: 1.35rem 0 0.45rem;
  color: #0c1929;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.privacy-article h2:first-child {
  margin-top: 0;
}

.privacy-article p {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-article a {
  color: #003fec;
  text-decoration: none;
  font-weight: 600;
}

.privacy-article a:hover,
.privacy-article a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.privacy-page .privacy-footer {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
}

.privacy-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
}

.privacy-footer-inner p,
.privacy-footer-inner span {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.privacy-footer-inner a {
  font-size: 0.8rem;
  color: #003fec;
  text-decoration: none;
}

.privacy-footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.privacy-page .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0c1929;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.privacy-page .lang-link:hover,
.privacy-page .lang-link:focus-visible {
  color: #003fec;
  border-color: rgba(0, 63, 236, 0.28);
  background: #e6eefd;
}

@media (max-width: 720px) {
  .privacy-main {
    padding: 1.1rem 0 2.25rem;
  }

  .privacy-article {
    padding: 1.1rem 1.05rem 1.25rem;
  }
}

@media (max-width: 767px) {
  .privacy-page .navbar {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .privacy-main {
    padding: 0.95rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .privacy-container {
    width: min(100% - 1.1rem, 720px);
  }

  .privacy-article {
    padding: 1rem 0.95rem 1.15rem;
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .privacy-article h1 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .privacy-article h2 {
    font-size: 1.15rem;
  }

  .privacy-article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .privacy-article img,
  .privacy-article pre {
    max-width: 100%;
  }

  .privacy-page .lang-link {
    white-space: normal;
  }
}

/* 汉堡菜单：纯白不透明，不透出背后内容 */
body.privacy-page.nav-open .navbar {
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  z-index: 200;
  overflow: visible;
}

body.privacy-page.nav-open .nav-drawer {
  visibility: visible !important;
  pointer-events: auto !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
  z-index: 201;
}

body.privacy-page.nav-open .nav-drawer::before {
  content: "";
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: #ffffff;
  pointer-events: none;
}

body.privacy-page.nav-open .privacy-main,
body.privacy-page.nav-open main,
body.privacy-page.nav-open .footer {
  visibility: hidden !important;
  pointer-events: none !important;
}
