/* Shared visual system for guide, credits, support and legal pages. */
.policy-page,
.credits-page,
.support-page {
  width: min(100% - 48px, 920px) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 72px 0 96px !important;
}

.policy-page > .eyebrow,
.credits-page > .eyebrow,
.support-page > .eyebrow {
  margin: 0 0 12px;
  color: var(--color-primary-base);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.policy-page > h1,
.credits-page > h1,
.support-page > h1 {
  max-width: 720px;
  margin: 0 0 16px !important;
  font-family: var(--font-family-heading);
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.policy-page > .subtitle,
.credits-page > .subtitle,
.support-page > .subtitle {
  max-width: 720px;
  margin: 0 0 48px !important;
  color: var(--color-text-muted);
  font-size: var(--font-size-md) !important;
  line-height: 1.7;
}

.policy-page h2,
.credits-page h2,
.support-page h2 {
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-base);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl) !important;
}

.policy-page p,
.policy-page li,
.credits-page p,
.credits-page li,
.support-page p,
.support-page li {
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-sm) !important;
  line-height: 1.8 !important;
}

.policy-page h3,
.policy-page details summary,
.policy-page .steps-list li::before,
.credits-page h3,
.support-page h3 {
  font-family: var(--font-family-heading) !important;
  letter-spacing: -.01em;
}

.policy-page .type-grid,
.credits-page .type-grid,
.support-page .type-grid {
  gap: 16px;
}

.policy-page .type-card,
.policy-page details,
.credits-page .type-card,
.support-page .type-card {
  border: 1px solid var(--color-border-base) !important;
  border-radius: var(--radius-lg) !important;
  background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg-panel)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.policy-page .type-card,
.credits-page .type-card,
.support-page .type-card {
  padding: 24px !important;
}

.policy-page details {
  padding: 16px 18px !important;
}

@media (max-width: 640px) {
  .policy-page,
  .credits-page,
  .support-page {
    width: min(100% - 32px, 920px) !important;
    padding: 48px 0 72px !important;
  }

  .policy-page .type-grid,
  .credits-page .type-grid,
  .support-page .type-grid {
    grid-template-columns: 1fr !important;
  }
}
