/* ==========================================================================
   Legal Pages (Impressum, Datenschutz, AGB)
   ========================================================================== */

/* Compact hero for legal pages (no subtitle, less height needed) */
.hero-simple {
  min-height: unset;
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

@media (min-width: 768px) {
  .hero-simple {
    padding: calc(var(--spacing-3xl) + var(--spacing-md)) 0 var(--spacing-xl);
  }
}

/* Remove inner content padding and title margin */
.hero-simple .hero-content {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-simple .hero-title {
  margin-bottom: 0;
}

/* Reduced top padding for content directly after compact hero */
.content-section {
  padding-top: var(--spacing-xl);
}

.legal-content {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-bg-dark);
}

.legal-intro {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.legal-section {
  margin-bottom: var(--spacing-md);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.legal-section p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: var(--spacing-sm) 0;
  padding-left: 1.5rem;
  list-style: revert;
}

.legal-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--color-text-light-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: var(--color-text-light);
  text-decoration: underline;
}

/* Impressum Card */
.impressum-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-4xl);
  background: var(--color-bg-elevated-2);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

@media (min-width: 768px) {
  .impressum-card {
    padding: var(--spacing-2xl);
  }
}

.impressum-card__logo {
  width: 180px;
  flex-shrink: 0;
}

.impressum-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.impressum-card__content p {
  margin: 0;
}

.impressum-card__content p + p {
  margin-top: 1rem;
}

.impressum-card__content a {
  color: var(--color-text-light-muted);
  text-decoration: underline;
}

.impressum-card__content a:hover {
  color: var(--color-text-light);
}

/* Language-specific visibility for Impressum dispute section */
html[lang="de"] .impressum-dispute-link { display: none; }
html[lang="en"] .impressum-dispute-de  { display: none; }

/* Language-specific visibility for AGB content blocks */
html[lang="de"] .agb-lang-en { display: none; }
html[lang="en"] .agb-lang-de { display: none; }

/* Language-specific visibility for Datenschutz content blocks */
html[lang="de"] .datenschutz-lang-en { display: none; }
html[lang="en"] .datenschutz-lang-de { display: none; }

/* Landscape Mobile Fix */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-simple {
    padding-top: 90px;
    padding-bottom: var(--spacing-md);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: var(--spacing-md) 0;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .impressum-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-2xl);
  }
}
