.page-privacy {
  --page-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  position: relative;
  font-family: var(--font-body);
  color: var(--c-text);
  background:
    linear-gradient(rgba(0, 255, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.035) 1px, transparent 1px),
    var(--c-bg);
  background-size: 32px 32px, 32px 32px, auto;
  padding-bottom: 80px;
  scroll-behavior: smooth;
}
.page-privacy .breadcrumb {
  max-width: var(--shell);
  margin-inline: auto;
}
.page-privacy a:focus-visible,
.page-privacy summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.page-privacy mark.hl {
  background: rgba(0, 255, 136, 0.12);
  color: var(--c-accent-soft);
  font-weight: 600;
  padding: 0 3px;
}
.state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.55);
  animation: privacy-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes privacy-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero */
.privacy-hero {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 24px var(--gutter) 8px;
}
.privacy-hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--c-border);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  background: var(--c-bg-deep);
  overflow: hidden;
}
.privacy-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.privacy-hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--c-overlay) 0%, rgba(3, 15, 26, 0.25) 45%, rgba(0, 255, 136, 0.1) 100%);
  pointer-events: none;
}
.hero-fig-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  background: rgba(3, 15, 26, 0.76);
  border-left: 3px solid var(--c-accent);
  padding: 8px 14px;
}
.hero-fig-caption .caption-code {
  font-family: var(--page-mono);
  font-size: 12px;
  color: var(--c-accent);
  white-space: nowrap;
}
.hero-fig-caption .caption-text {
  font-size: 12px;
  color: var(--c-text);
  line-height: 1.4;
}
.privacy-hero-copy {
  position: relative;
  padding: 36px 0 16px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-family: var(--page-mono);
  font-size: 13px;
  color: var(--c-accent);
  letter-spacing: 0.08em;
}
.hero-kicker::after {
  content: "";
  flex: 0 0 54px;
  height: 2px;
  background: var(--c-accent);
  transform: skewX(-24deg);
  opacity: 0.55;
}
.hero-bracket {
  color: var(--c-muted);
}
.hero-version {
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.privacy-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.privacy-hero h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-soft));
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.hero-lead {
  margin: 18px 0 0;
  max-width: 68ch;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  font-family: var(--page-mono);
  font-size: 12px;
  color: var(--c-accent-soft);
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid var(--c-border);
  padding: 6px 12px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* Layout */
.privacy-layout {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 44px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.privacy-content,
.privacy-toc {
  min-width: 0;
}

/* TOC */
.privacy-toc {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18, 48, 77, 0.92), rgba(7, 22, 39, 0.92));
  border: 1px solid var(--c-border);
  padding: 20px 18px;
}
.privacy-toc::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 3px;
  background: var(--c-accent);
  transform: rotate(-45deg);
  opacity: 0.35;
  pointer-events: none;
}
.toc-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--page-mono);
  font-size: 13px;
  color: var(--c-accent);
  letter-spacing: 0.08em;
}
.toc-mark {
  color: var(--c-muted);
}
.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.toc-list a i {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14px;
  color: var(--c-accent);
  opacity: 0.8;
}
.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--c-text);
  background: rgba(0, 255, 136, 0.06);
  border-left-color: var(--c-accent);
}
.toc-contact {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--c-border);
}
.toc-contact-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}
.toc-contact-mail {
  font-family: var(--page-mono);
  font-size: 12px;
  color: var(--c-accent);
  word-break: break-all;
}
.toc-contact a {
  width: fit-content;
  padding-bottom: 2px;
  font-size: 12px;
  color: var(--c-accent-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.toc-contact a:hover {
  color: var(--c-accent);
}
.toc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--page-mono);
  font-size: 11px;
  color: var(--c-muted);
}

/* Sections */
.policy-section {
  scroll-margin-top: 96px;
}
.policy-section + .policy-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px dashed var(--c-border);
}
.policy-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.policy-num {
  flex: 0 0 auto;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 900;
  line-height: 0.85;
  color: var(--c-accent);
  -webkit-text-stroke: 1.5px var(--c-accent);
}
@supports (-webkit-text-stroke: 1px var(--c-accent)) {
  .policy-num {
    color: transparent;
  }
}
.policy-num::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--c-accent);
  transform: rotate(45deg);
  opacity: 0.45;
  pointer-events: none;
}
.policy-head-box {
  min-width: 0;
  padding-top: 2px;
}
.policy-file {
  display: inline-block;
  font-family: var(--page-mono);
  font-size: 11.5px;
  color: var(--c-muted);
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid var(--c-border);
  padding: 3px 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.policy-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-family: var(--page-mono);
  font-size: 11px;
  color: var(--c-muted);
}
.policy-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.policy-section:target {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.05), transparent 65%);
}
.policy-section:target .policy-num {
  color: var(--c-accent);
  -webkit-text-stroke: 0;
}

/* Code block */
.policy-code {
  position: relative;
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(7, 22, 39, 0.85), rgba(5, 16, 28, 0.68));
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  padding: 20px 18px 18px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.code-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
}
.code-line:last-of-type {
  margin-bottom: 0;
}
.line-no {
  flex: 0 0 auto;
  min-width: 30px;
  margin-top: 2px;
  padding: 2px 4px;
  text-align: center;
  font-family: var(--page-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--c-accent-soft);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--c-border);
}
.line-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Term tip */
.term-tip {
  margin: 16px 0 2px 38px;
  padding: 10px 14px;
  background: rgba(0, 255, 136, 0.04);
  border: 1px dashed var(--c-border);
}
.term-tip summary {
  cursor: pointer;
  user-select: none;
  font-family: var(--page-mono);
  font-size: 12.5px;
  color: var(--c-accent);
  list-style: none;
}
.term-tip summary::-webkit-details-marker {
  display: none;
}
.term-tip summary::before {
  content: "[定义]";
  margin-right: 6px;
  color: var(--c-muted);
}
.term-tip[open] summary::before {
  content: "[收起]";
}
.term-tip p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-muted);
}

/* Plain note */
.policy-note {
  position: relative;
  margin: 18px 0 0 16px;
  padding: 14px 18px 16px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.07), rgba(18, 48, 77, 0.42));
  border: 1px solid var(--c-border);
}
.policy-note::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  transform: rotate(45deg);
  opacity: 0.65;
  pointer-events: none;
}
.policy-note summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--page-mono);
  font-size: 13px;
  color: var(--c-accent-soft);
}
.policy-note summary::-webkit-details-marker {
  display: none;
}
.policy-note summary::after {
  content: "▼";
  margin-left: auto;
  font-size: 10px;
  color: var(--c-muted);
  transition: transform 0.25s;
}
.policy-note[open] summary::after {
  transform: rotate(180deg);
}
.policy-note p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}
.policy-note p a {
  color: var(--c-accent-soft);
  text-underline-offset: 2px;
  text-decoration: underline;
}
.comment-sym {
  color: var(--c-accent);
  font-weight: 700;
}

/* Rights */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.right-card {
  position: relative;
  padding: 16px;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.right-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.right-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--c-accent);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--c-border);
}
.right-card h3 {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
}
.right-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
}
.rights-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(0, 255, 136, 0.05);
  border-left: 3px solid var(--c-accent-soft);
}
.rights-action-text {
  font-size: 14px;
  color: var(--c-muted);
}
.page-privacy .btn-outline {
  width: fit-content;
}

/* Contact block */
.contact-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(18, 48, 77, 0.6), rgba(7, 22, 39, 0.7));
  border: 1px solid var(--c-border);
}
.contact-block .btn-outline {
  justify-self: start;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
}
.contact-label {
  min-width: 68px;
  font-family: var(--page-mono);
  font-size: 12px;
  color: var(--c-accent);
}
.contact-value {
  font-weight: 600;
  color: var(--c-text);
  word-break: break-all;
}
.contact-note {
  font-size: 12px;
  color: var(--c-muted);
}

/* Band */
.privacy-band {
  max-width: var(--shell);
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}
.band-label {
  margin: 0 0 10px;
  font-family: var(--page-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.band-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 26px 22px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 255, 136, 0.14), rgba(18, 48, 77, 0.65) 45%, rgba(7, 22, 39, 0.85));
  border: 1px solid var(--c-border);
}
.band-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 4px;
  background: var(--c-accent);
}
.band-inner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border: 2px solid var(--c-border);
  transform: rotate(45deg);
  pointer-events: none;
}
.stat-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--c-text);
}
.stat-unit {
  color: var(--c-accent);
  font-size: 0.5em;
}
.stat-label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-muted);
}

/* Related nav */
.privacy-relate {
  max-width: var(--shell);
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.privacy-relate a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  text-decoration: none;
  background: rgba(18, 48, 77, 0.55);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.privacy-relate a:hover,
.privacy-relate a:focus-visible {
  transform: translateY(-3px);
  background: rgba(18, 48, 77, 0.9);
  border-color: var(--c-accent);
}
.relate-code {
  font-family: var(--page-mono);
  font-size: 12px;
  color: var(--c-accent);
}
.privacy-relate strong {
  font-size: 16px;
  color: var(--c-text);
}
.privacy-relate small {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-muted);
}

/* Media queries */
@media (min-width: 640px) {
  .rights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .band-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 900px) {
  .privacy-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .privacy-toc {
    position: sticky;
    top: 88px;
    padding: 22px 20px;
  }
  .toc-list {
    grid-template-columns: 1fr;
  }
  .privacy-hero-copy {
    padding-top: 44px;
  }
  .policy-code {
    padding: 22px 24px 20px;
  }
  .policy-note {
    margin-left: 28px;
  }
  .privacy-relate {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-privacy {
    scroll-behavior: auto;
  }
  .page-privacy *,
  .page-privacy *::before,
  .page-privacy *::after {
    transition: none !important;
    animation: none !important;
  }
}
