/* Impressum and privacy policy */

/* ===== impressum (app/impressum/style.module.scss) ===== */
.legal-body {
  display: flex;
  position: relative;
  padding-left: 30px;
  padding-right: 30px;
  margin-top: 8%;
  flex-direction: column;
}

.legal-headerImageContainer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.legal-header {
  flex: 1;
  min-width: 300px;
}

.legal-titlepos {
  color: var(--scroll-p-color, rgb(255, 255, 255));
}

.legal-title {
  font-size: 7rem;
  font-weight: 500;
  margin: 0;
  color: var(--scroll-p-color, rgb(255, 255, 255));
}

.legal-workdescriptioncontainer {
  /* Existing styles can remain here */
}

.legal-workdescriptionrow {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.legal-workdescriptionflex {
  width: calc(33.333% - clamp(1.5em, 4vw, 2.5em));
  margin-right: clamp(1.5em, 4vw, 2.5em);
  order: 2;
  position: relative;
  display: block;
  margin-bottom: 30px;
}

.legal-workdescriptiontitle {
  font-weight: 450;
  font-style: normal;
  font-size: 1.1rem; /* Changed from 0.6em to 1.1rem */
  margin-top: 3rem; /* Added margin-top */
  line-height: 1.065;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  color: var(--scroll-p-color, rgb(255, 255, 255));
}

.legal-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgb(185, 185, 185);
}

.legal-workdescriptiondescription {
  font-size: 1.5rem; /* Changed from 2rem to 1.5rem */
  line-height: 1.66;
  color: var(--scroll-p-color, rgb(255, 255, 255));
}

.legal-workimage {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Removed max-width from image for normal view */
.legal-workimage img {
  width: 100%;
  height: auto;
}

.legal-descriptionText {
  color: var(--scroll-p-color, rgb(255, 255, 255));
  font-size: 1.5rem;
  line-height: 1.5;
  padding-top: 2rem;
}

@media (max-width: 480px) {
  .legal-body {
    margin-top: 18%; /* Adjusted for mobile view */
  }
  .legal-title {
    font-size: 8vw; /* Changed from 13vw to 8vw */
  }
  .legal-workdescriptionflex {
    width: 100%; /* Adjusted for mobile view */
    margin-right: unset; /* Removed margin-right for mobile view */
  }
  .legal-workdescriptiondescription {
    font-size: 1rem;
  }
  .legal-descriptionText {
    font-size: 1rem;
  }
  .legal-headerImageContainer {
    flex-direction: column;
    align-items: center;
  }
  .legal-workimage {
    margin-top: 20px;
  }
  .legal-workimage img {
    max-width: 300px; /* Apply max-width only on mobile */
    width: auto; /* Ensure it doesn't stretch beyond max-width */
  }
  .legal-workdescriptiontitle {
    font-size: 1rem; /* Adjusted for mobile view */
    margin-top: 3rem; /* Retain margin-top or adjust if necessary */
  }
}
