/* Impressum / Datenschutz page styling
   Layered on top of style.css. The .legal class on <body> opts in. */

body.legal {
  overflow: auto;            /* page scrolls, unlike the hero index */
  min-height: 100dvh;
}

.legal__sheet {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) 6rem;
  color: var(--ink);
}

/* Header strip with back-link + small logo */
.legal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.legal__back {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .5em .9em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255,248,237,.55);
  backdrop-filter: blur(2px);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: background .2s ease, transform .2s ease;
}
.legal__back:hover { background: rgba(255,248,237,.9); transform: translateX(-2px); }
.legal__back svg   { width: 1em; height: 1em; }
.legal__brand img  { width: 130px; height: auto; display: block; }

/* Article body */
.legal article {
  background: rgba(255,248,237,.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(29,29,27,.12);
  border-radius: 22px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px -16px rgba(29,29,27,.25);
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 .25em;
  letter-spacing: -.01em;
  line-height: 1;
}
.legal h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 1.6em 0 .35em;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal__intro {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  opacity: .8;
}
.legal p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(.95rem, 1.3vw, 1.02rem);
  line-height: 1.6;
  margin: 0 0 .9em;
  font-weight: 400;
}
.legal p strong { font-weight: 600; }
.legal a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s ease;
}
.legal a:hover { opacity: .65; }

/* Highlight unfilled placeholders so they stand out during proofing */
[data-fill]:where(:not(:has(*))):where([data-fill]:not(:empty)) { /* nothing */ }
[data-fill] {
  /* If the placeholder text starts with "[" it's still unfilled — visually flag it */
}

.legal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin-top: 2rem;
  opacity: .75;
}
.legal__footer a {
  border-bottom: 1px solid currentColor;
}

/* Wave background tweaks for the legal page — tame the motion */
body.legal .bg__wave        { height: 38vh; }
body.legal .bg__wave--back  { display: none; }
