/* ============================================================
   LEGAL / SITEMAP PAGES (privacy, terms, sitemap)
   Uses the shared design tokens from style.css - no hardcoded
   colors/sizes here, same as the rest of the theme's component CSS.
   ============================================================ */

.legal-page {
  min-height: 70vh;
  padding: var(--sp-10) 0;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.legal-container--wide {
  max-width: 920px;
}

.legal-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.legal-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  margin-bottom: var(--sp-3);
}

.legal-title-accent {
  color: var(--clr-gold);
}

.legal-updated,
.legal-subtitle {
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
}

.legal-subtitle {
  max-width: 480px;
  margin: 0 auto;
}

.legal-content {
  background: var(--clr-bg-card2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  line-height: 2;
  font-size: 14.5px;
  color: var(--clr-text-muted);
}

.legal-content h2 {
  color: var(--clr-text);
  font-size: var(--font-size-md);
  margin-bottom: var(--sp-3);
}

.legal-content p {
  margin-bottom: var(--sp-5);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-link {
  color: var(--clr-gold);
}

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
}

.sitemap-card {
  background: var(--clr-bg-card2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
}

.sitemap-card h2 {
  color: var(--clr-text);
  font-size: var(--font-size-base);
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

.sitemap-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sitemap-card ul.is-scrollable {
  max-height: 280px;
  overflow-y: auto;
}

.sitemap-card ul a {
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
  text-decoration: none;
}

.sitemap-card ul a:hover {
  color: var(--clr-gold);
}
