/* Legal pages (content/legal_page.html): Terms, Privacy, Returns, Shipping,
   Copyright. Long-form reading text, so the body is set in Inter at a
   comfortable measure; the title keeps the brand's Fondamento. */

.legal-page {
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.legal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.legal-title {
  /* Literal font, as .gallery-title: the --body-font variable collides
     between the theme files. */
  font-family: "Fondamento", cursive;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.legal-updated {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0;
}

.legal-body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 12px;
}

.legal-body h2 {
  font-family: "Fondamento", cursive;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin-bottom: 1rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body a {
  overflow-wrap: anywhere;
}

/* Cosmic: a dark panel behind the text, so a long read stays legible over
   the moving starfield. Literal colours (see the known issue at the top of
   themes/cosmic.css). */
.theme-cosmic .legal-body {
  background: rgba(8, 12, 32, 0.78);
  border: 1px solid rgba(201, 184, 255, 0.18);
  color: #dcdce6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.theme-cosmic .legal-body h2,
.theme-cosmic .legal-body h3 {
  color: #c9b8ff;
}

.theme-cosmic .legal-body p {
  /* cosmic.css gives paragraphs a larger Fondamento rhythm; keep the
     body's own spacing here. */
  margin-bottom: 1rem;
}

.theme-cosmic .legal-header {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 0, 0, 0.55);
}

/* Minimalist: a plain white card. */
.theme-minimalist .legal-body {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

@media (max-width: 575.98px) {
  .legal-body {
    border-radius: 8px;
  }
}
