/* TaskLink 隐私政策页专用布局：政策标题、粘性目录、条款卡片与联系区。 */
.policy-main {
  padding-top: 70px;
}

.policy-hero {
  display: flex;
  padding: 62px 24px 72px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.policy-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
  border-radius: 26px;
  color: var(--blue);
  background: var(--surface-blue);
  font-size: 38px;
  box-shadow: var(--shadow-sm);
}

.policy-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.policy-hero > p:not(.section-kicker) {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.policy-meta {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.policy-meta span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--card-elevated);
  font-size: 12px;
}

.policy-layout {
  display: grid;
  padding-bottom: 40px;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.policy-toc {
  position: sticky;
  top: 98px;
  display: flex;
  padding: 20px;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.policy-toc strong {
  margin-bottom: 7px;
  padding: 0 8px;
  font-size: 13px;
}

.policy-toc a {
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
  color: var(--blue);
  background: var(--surface-blue);
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-card {
  position: relative;
  padding: 34px 36px;
  scroll-margin-top: 98px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.policy-card h2 {
  margin: 0 0 16px;
  padding-right: 54px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.policy-card p {
  margin: 0 0 12px;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  display: grid;
  margin: 0;
  padding-left: 20px;
  gap: 12px;
}

.policy-card strong {
  color: var(--text-soft);
}

.policy-card a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent);
  text-underline-offset: 3px;
}

.policy-number {
  position: absolute;
  top: 22px;
  right: 26px;
  color: color-mix(in srgb, var(--blue) 42%, var(--faint));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.policy-contact {
  display: grid;
  margin-top: 10px;
  padding: 28px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line));
  border-radius: 26px;
  background: var(--surface-blue);
}

.policy-contact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
}

.policy-contact strong {
  display: block;
  font-size: 17px;
}

.policy-contact p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.policy-footer {
  margin-top: 70px;
  padding-top: 0;
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .policy-main {
    padding-top: 34px;
  }

  .policy-nav {
    display: none;
  }

  .policy-hero {
    padding: 40px 8px 48px;
  }

  .policy-hero > p:not(.section-kicker) {
    font-size: 16px;
  }

  .policy-toc {
    grid-template-columns: 1fr;
  }

  .policy-card {
    padding: 27px 22px;
    border-radius: 22px;
  }

  .policy-card h2 {
    padding-right: 38px;
    font-size: 21px;
  }

  .policy-number {
    top: 20px;
    right: 19px;
  }

  .policy-contact {
    grid-template-columns: auto 1fr;
  }

  .policy-contact .button {
    grid-column: 1 / -1;
  }
}
