/* Legal pages share the start page's colours, typography and spacing without external CSS. */
.legal-page {
  background: var(--surface-soft);
}

.legal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 7px 28px rgba(23, 33, 43, 0.08);
}

.legal-header .container {
  min-height: var(--header-height);
}

.legal-header .container > div {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header img {
  width: 250px;
  max-height: 82px;
  object-fit: contain;
}

.legal-main {
  padding: calc(var(--header-height) + 58px) 0 78px;
}

.legal-main > .container {
  max-width: 900px;
}

.legal-main h1 {
  margin-bottom: 36px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

.legal-main > .container > div {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-main h2 {
  margin-bottom: 15px;
  color: var(--accent-dark);
  font-size: clamp(1.32rem, 3vw, 1.72rem);
}

.legal-main h3 {
  margin: 22px 0 8px;
  font-size: 1.14rem;
}

.legal-main p,
.legal-main a {
  overflow-wrap: anywhere;
}

.legal-main a {
  color: var(--accent-dark);
  font-weight: 750;
}

.legal-footer {
  padding: 48px 0 36px;
  background: #0e171f;
  color: rgba(255, 255, 255, 0.84);
}

.legal-footer > .container > .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.legal-footer h3 {
  margin: 0 0 18px;
  color: #ffd66a;
}

.legal-footer a {
  color: #ffd66a;
  overflow-wrap: anywhere;
}

.legal-footer-location {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.legal-footer .border-t {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

@media (max-width: 760px) {
  .legal-header img {
    width: 190px;
    max-height: 64px;
  }

  .legal-header-cta {
    display: none;
  }

  .legal-main {
    padding: calc(var(--header-height) + 38px) 0 64px;
  }

  .legal-footer > .container > .grid {
    grid-template-columns: 1fr;
  }
}

/* The Impressum uses the same header, navigation and footer as the homepage.
   Keep these page-specific rules separate from the existing privacy-page layout. */
.imprint-main {
  padding-top: var(--header-height);
}

.imprint-intro {
  padding: clamp(62px, 8vw, 110px) 0 clamp(54px, 7vw, 82px);
  background: linear-gradient(115deg, #f6f1e5 0%, #fff 70%);
  border-bottom: 1px solid var(--line);
}

.imprint-intro .container {
  max-width: 1160px;
}

.imprint-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
}

.imprint-intro .lead {
  max-width: 650px;
  margin-bottom: 18px;
}

.imprint-back {
  color: var(--accent-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

.imprint-content {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(68px, 8vw, 100px);
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.imprint-card,
.imprint-detail {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.imprint-card {
  border-top: 4px solid var(--accent);
}

.imprint-card--wide {
  grid-column: 1 / -1;
}

.imprint-card h2,
.imprint-detail h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.28;
}

.imprint-card p,
.imprint-detail p {
  margin-bottom: 7px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.imprint-card a,
.imprint-detail a {
  color: var(--accent-dark);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.imprint-details {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.imprint-detail {
  border-left: 4px solid var(--accent);
}

.imprint-detail p {
  max-width: 85ch;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .imprint-intro {
    padding: 48px 0 52px;
  }

  .imprint-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .imprint-card--wide {
    grid-column: auto;
  }

  .imprint-details {
    gap: 14px;
    margin-top: 14px;
  }

  .imprint-card,
  .imprint-detail {
    padding: 23px 20px;
  }
}
