.legal-page {
  color: #000;
  font-size: 16px;
  line-height: 1.6;
}

.legal-page main h1,
.legal-page main h2,
.legal-page main h3,
.legal-page main p {
  margin-top: 0;
  margin-bottom: 2em;
}

.legal-hero,
.privacy-page .page-hero {
  position: relative;
  display: flex;
  height: 40vh;
  min-height: 0;
  margin-top: 100px;
  align-items: center;
  overflow: hidden;
}

.bfsg-content {
	height: auto;
    padding: 23px 5%;
	text-align: left !important;
}
.bfsg-content h2 {
	font-size: 36px;
	font-weight: 400;
	margin-top: 2em !important;
	margin-bottom: 1em !important;
}
.bfsg-content a {
	text-decoration: underline;
	color: #741834;
}


.legal-hero-imprint {
  background: url("../images/page-legal.jpg") center center / cover no-repeat;
}

.privacy-page .page-hero {
  background: url("../images/page-privacy.jpg") center center / cover no-repeat;
}
.privacy-page .page-hero::before,
.legal-hero::before{
    position: absolute;
    inset: 0;
    content: "";
    background: rgb(255 255 255 / 50%);
}
.legal-hero > div,
.privacy-page .page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.legal-hero h1,
.privacy-page .page-hero h1 {
  margin: 0;
  color: #b62b26;
  font-size: 41.6px;
  font-weight: 400;
  text-align: center;
}

.legal-hero > img,
.privacy-page .page-hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 100%;
}

.imprint-spacer {
  height: 68px;
}

.imprint-contact {
  height: 252px;
  margin-top: 50px;
  padding: 23px 5%;
}

.imprint-contact > div,
.imprint-rights > div,
.imprint-polaris > div {
  width: 100%;
  margin-inline: auto;
}

.imprint-contact h2,
.imprint-rights h2,
.imprint-polaris h2 {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 400;
  text-align:center;
}

.imprint-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
	text-align:center;
}

.imprint-contact-grid p a {
    color: #741834;
    text-decoration: underline;
}

.imprint-contact-grid p {
  margin: 0;
}

.imprint-rights {
  height: 723px;
  margin-top: 50px;
  padding: 50px 5%;
}

.imprint-rights ul {
  margin: 0;
  padding-left: 20px;
  text-align: center;
  list-style: none;
}

.imprint-polaris {
  position: relative;
  height: 696px;
  margin-top: 50px;
  padding: 61px 5%;
  color: #fff;
  background: #213e67 url("../images/polaris-background.jpg") center center / cover no-repeat;
  background-attachment: fixed;
}

.imprint-polaris::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgb(21 44 75 / 70%);
}

.imprint-polaris > div {
  position: relative;
  z-index: 1;
}
.imprint-polaris a {
    text-decoration: underline;
}
.polaris-logo {
  width: 300px;
  margin: 66px auto 40px;
}

.polaris-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.polaris-facebook {
  display: block;
  width: 230px;
  margin: 30px auto 0;
}

.privacy-page .page-hero + .subpage-section {
  padding: 0;
}

.privacy-page .legal-content {
  width: 90%;
  max-width: none;
  margin-inline: auto;
  padding: 64px 0 33px;
}

.privacy-page .legal-content h2 {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 400;
}

.privacy-page .legal-content p,
.privacy-page .legal-content li {
  line-height: 1.6;
}

.privacy-page .legal-content ul,
.privacy-page .legal-content ol {
  padding-left: 28px;
}

@media (max-width: 767px) {
  .imprint-spacer {
    height: 164px;
  }

  .imprint-contact {
    height: 710px;
    margin-top: 50px;
    padding: 34px 20px 50px;
  }

  .imprint-contact-grid,
  .polaris-contact {
    grid-template-columns: 1fr;
  }

  .imprint-rights {
    height: auto;
    margin-top: 50px;
    padding: 50px 20px;
  }

  .imprint-polaris {
    height: 1043px;
    min-height: 1043px;
    margin-top: 50px;
    padding: 55px 20px;
  }

  .imprint-contact h2,
  .imprint-rights h2,
  .imprint-polaris h2 {
    font-size: 31px;
  }

  .privacy-page .legal-content {
    width: calc(100% - 40px);
    padding-top: 45px;
    padding-bottom: 328px;
  }

  .privacy-page .legal-content h2 {
    margin-top: 30px;
    font-size: 28px;
  }
}

@media (min-width: 768px) {
  .legal-hero,
  .privacy-page .page-hero {
    height: 65vh;
    margin-top: -60px;
  }

  .legal-hero h1,
  .privacy-page .page-hero h1 {
    font-size: 57.6px;
  }
}

@media (min-width: 1025px) {
  .legal-hero,
  .privacy-page .page-hero {
    margin-top: -2px;
  }

  .legal-hero h1,
  .privacy-page .page-hero h1 {
    padding-left: 10%;
    font-size: 64px;
    text-align: left;
  }
}

@media (min-width: 1441px) {
  .legal-hero,
  .privacy-page .page-hero {
    height: 90vh;
  }
}
