/* Impressum and Datenschutz: a calm reading page. Builds on base.css. */

body {
  background: linear-gradient(180deg, #e8f2fd 0%, #f6f9fc 320px) no-repeat, #f6f9fc;
  line-height: 1.6;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--blue);
  text-decoration: none;
}

.home-link img {
  width: 40px;
  height: 40px;
  flex: none;
}

.back-link {
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.home-link:hover,
.back-link:hover,
.legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.legal {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: clamp(24px, 5vw, 56px);
  font-size: 17px;
  font-weight: 600;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(14, 58, 134, 0.08);
}

.legal h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal h2 {
  margin: 36px 0 8px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--blue);
}

.legal h3 {
  margin: 24px 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 12px;
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 4px;
}

.legal a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.legal .meta {
  margin-top: 36px;
  padding-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
  border-top: 2px solid var(--line);
}

.legal-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 16px 40px;
  font-size: 15px;
  font-weight: 700;
}

.legal-footer a {
  color: var(--ink-soft);
}

.legal-footer a[aria-current="page"] {
  color: var(--navy);
  text-decoration: none;
}

@media (max-width: 520px) {
  .home-link span {
    font-size: 17px;
  }

  .legal {
    border-radius: 0;
    font-size: 16px;
  }
}
