/* Impressum — uses the site's theme variables and remains readable on narrow screens. */
.impressum {
  width: min(100%, 900px);
  overflow-wrap: anywhere;
}
.impressum-kicker {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.impressum > h1 {
  margin: 6px 0 20px;
}
.beta-notice {
  margin: 0 0 22px;
  padding: clamp(16px, 3vw, 22px);
  border: 2px solid #a34a08;
  border-left-width: 7px;
  border-radius: 8px;
  background: #fff4e5;
  color: #442006;
  line-height: 1.65;
}
.beta-notice h2 {
  margin: 0 0 8px;
  color: #6b2f04;
  font-size: 1.15rem;
}
.beta-notice p,
.legal-card p {
  margin: 0 0 12px;
}
.beta-notice p:last-child,
.legal-card p:last-child {
  margin-bottom: 0;
}
:root[data-theme="dark"] .beta-notice {
  border-color: #f0a34a;
  background: #302313;
  color: #f8e6cf;
}
:root[data-theme="dark"] .beta-notice h2 {
  color: #ffd39e;
}
.legal-card {
  margin: 0 0 14px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  line-height: 1.7;
}
.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.legal-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.impressum-details {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  gap: 8px 18px;
  margin: 0;
}
.impressum-details dt {
  color: var(--muted);
  font-weight: 700;
}
.impressum-details dd {
  min-width: 0;
  margin: 0;
}
.registration-details {
  margin-top: 16px;
}
.legal-card ul {
  margin: 8px 0 0;
  padding-left: 1.4rem;
}
.legal-card li + li {
  margin-top: 8px;
}
.muted-copy {
  margin-top: 14px !important;
  color: var(--muted);
}
.impressum-back {
  margin: 20px 0 0;
}
.impressum a:focus-visible,
.sitefoot a:focus-visible,
.topnav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 600px) {
  .impressum-details {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .impressum-details dd + dt {
    margin-top: 10px;
  }
}
@media print {
  .beta-notice,
  .legal-card {
    break-inside: avoid;
    color: #111;
    background: #fff;
  }
}
