/* Legal pages: Impressum / Datenschutz */
.kb-legal-body {
  margin: 0;
  background: var(--ivory, #f5f2eb);
  color: #291c3a;
  font-family: Inter, system-ui, sans-serif;
}

.kb-legal-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  box-sizing: border-box;
  position: relative;
}

@media (min-width: 768px) {
  .kb-legal-wrap {
    padding: 2rem 2.5rem 5rem;
  }
}

.kb-legal-head {
  position: relative;
  text-align: center;
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
  padding-left: 3.25rem;
  padding-right: 3.25rem;
  box-sizing: border-box;
}

.kb-legal-close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid rgba(41, 28, 58, 0.18);
  border-radius: 9999px;
  background: #fff;
  color: #291c3a;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.kb-legal-close:hover {
  border-color: #5b3d7a;
  color: #5b3d7a;
}

.kb-legal-eyebrow {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(41, 28, 58, 0.55);
}

.kb-legal-title {
  margin: 0.65rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: var(--kb-type-title-size, clamp(1.85rem, 3.6vw, 2.75rem));
  font-weight: 400;
  line-height: 1.12;
  color: #291c3a;
}

.kb-legal-content {
  max-width: 42rem;
  margin: 0 auto;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--kb-type-body-size, 1.0625rem);
  line-height: 1.65;
  color: rgba(41, 28, 58, 0.88);
}

.kb-legal-content section {
  margin: 0 0 2rem;
}

.kb-legal-content h2 {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: #291c3a;
}

.kb-legal-content p {
  margin: 0 0 0.85rem;
}

.kb-legal-content ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.kb-legal-content li {
  margin: 0 0 0.35rem;
}

.kb-legal-content a {
  color: var(--header-bar-violet, #4a2c7a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-legal-content a:hover {
  color: #291c3a;
}

.kb-legal-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(41, 28, 58, 0.55);
}

/* Mobile nav: prevent label overlap on legal pages */
@media (max-width: 767px) {
  .kb-legal-body .site-header__nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem !important;
    justify-content: flex-start !important;
    padding: 0 0.75rem;
    scrollbar-width: none;
  }
  .kb-legal-body .site-header__nav::-webkit-scrollbar {
    display: none;
  }
  .kb-legal-body .site-header__nav > a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 0.95rem !important;
  }
}
