/* Legal pages (Datenschutz / Impressum)
   Keep Tailwind for layout, but normalize typography + spacing locally. */

.legal-content {
  /* Slightly calmer reading rhythm than raw Tailwind utilities */
  --legal-text: #71717a; /* zinc-500 */
  --legal-heading: #18181b; /* zinc-900 */
  --legal-muted: #52525b; /* zinc-600 */

  color: var(--legal-heading);
}

/* Headings: make hierarchy more obvious than 2xl vs xl */
.legal-content h1 {
  font-size: clamp(2rem, 1.75rem + 1.5vw, 2.5rem); /* larger than h2 */
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--legal-heading);
}

.legal-content h2 {
  font-size: clamp(1.375rem, 1.125rem + 0.8vw, 1.625rem); /* smaller than h1 */
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--legal-heading);
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.legal-content h3 {
  font-size: clamp(1.25rem, 1.125rem + 0.6vw, 1.5rem); /* xl → 2xl */
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--legal-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h4 {
  font-size: 1.125rem; /* clearer than body text */
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--legal-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* First heading in a section shouldn't get extra top margin */
.legal-content section > :is(h2, h3, h4):first-child {
  margin-top: 0;
}

/* Also reset top margin when headings start a card/block (e.g. Impressum card) */
.card-block > :is(h2, h3, h4):first-child {
  margin-top: 0;
}

/* Only apply paragraph rhythm to the actual body text paragraphs.
   (Avoid affecting address lines etc. that also use <p>.) */
.legal-content p.text-zinc-500 {
  color: var(--legal-text);
  line-height: 1.75;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Links in legal text */
.legal-content a {
  text-underline-offset: 2px;
}

/* Callout / card boxes used in legal pages */
.legal-box {
  padding: 1.75rem; /* more generous than p-6 (1.5rem) */
  margin-bottom: 2rem; /* space after box, especially before next section */
}

.legal-box > :first-child {
  margin-top: 0 !important;
}

.legal-box > :last-child {
  margin-bottom: 0 !important;
}

/* Tighter variant for small inline callouts (optional) */
.legal-box--compact {
  padding: 0.875rem;
}


