.legal-page {
  background: var(--white);
}

.legal-page .site-header {
  position: fixed;
}

.legal-page .header-cta {
  white-space: nowrap;
}

.legal-main {
  padding-top: var(--header-height);
}

.legal-document {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(92px, 11vw, 160px) 0 clamp(108px, 13vw, 190px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-copy,
.imprint-content {
  max-width: 1040px;
}

.legal-copy h1,
.imprint-content > h1 {
  margin: 0 0 clamp(62px, 8vw, 104px);
  color: var(--ink);
  font-size: clamp(2.75rem, 5.4vw, 4.9rem);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.legal-copy {
  color: #34404a;
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.legal-copy h4 {
  margin: clamp(68px, 8vw, 100px) 0 25px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.48rem, 2.3vw, 2.2rem);
  font-weight: 660;
  letter-spacing: -0.028em;
  line-height: 1.25;
}

.legal-copy p {
  margin: 0 0 1.45em;
}

.legal-copy > p:nth-of-type(-n + 3) {
  color: var(--ink-soft);
  font-size: clamp(1.16rem, 1.55vw, 1.34rem);
  line-height: 1.74;
}

.legal-copy ul {
  margin: 24px 0 40px;
  padding: 0 !important;
  list-style: none !important;
}

.legal-copy ul > li {
  position: relative;
  margin: 0;
  padding: 17px 0 17px 28px;
  border-top: 1px solid #e8ebed;
}

.legal-copy ul > li::before {
  position: absolute;
  top: 29px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  content: "";
}

.legal-copy ul > li:last-child {
  border-bottom: 1px solid #e8ebed;
}

.legal-copy li > h4 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 1.08rem !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

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

.legal-copy li ul {
  margin-bottom: 20px;
}

.imprint-content {
  color: var(--ink);
}

.imprint-address {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-style: normal;
  line-height: 1.72;
}

.imprint-address span:first-child {
  margin-bottom: 4px;
  font-weight: 760;
}

.imprint-address span:nth-child(2) {
  margin-bottom: 22px;
}

.imprint-address span:nth-child(5) {
  margin-bottom: 22px;
}

.imprint-address a {
  color: var(--blue-dark);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.imprint-clauses {
  max-width: 920px;
  margin-top: clamp(90px, 12vw, 150px);
  color: #34404a;
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  line-height: 1.82;
}

.imprint-clauses > section {
  padding-top: clamp(38px, 5vw, 62px);
  border-top: 1px solid var(--line);
}

.imprint-clauses > section + section {
  margin-top: clamp(74px, 9vw, 112px);
}

.imprint-clauses h2 {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.imprint-clauses h3 {
  margin: 38px 0 13px;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.8vw, 1.52rem);
  font-weight: 680;
  line-height: 1.3;
}

.imprint-clauses p {
  margin: 0 0 1.45em;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-footer-links a {
  color: #aeb7bf;
}

.legal-footer-links a:hover,
.legal-footer-links a[aria-current="page"] {
  color: var(--white);
}

@media (max-width: 820px) {
  .legal-document {
    padding-top: 78px;
  }
}

@media (max-width: 620px) {
  .legal-document {
    padding: 62px 0 110px;
  }

  .legal-copy h1,
  .imprint-content > h1 {
    margin-bottom: 54px;
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }

  .legal-copy {
    font-size: 1.05rem;
    line-height: 1.76;
  }

  .legal-copy h4 {
    margin-top: 58px;
  }

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

  .imprint-address {
    font-size: 1.2rem;
  }

  .imprint-clauses {
    margin-top: 82px;
    font-size: 1.05rem;
    line-height: 1.76;
  }
}
