/* Legal pages — aligned with main site shell & typography */

.legal-page-body {
  margin: 0;
}

/* Homepage bg layer is 8595px tall; clip it to legal page content height */
.legal-page-body .site-shell {
  overflow: clip;
}

.legal-page-body .site-shell::before {
  height: auto;
  bottom: 0;
}

/* Mobile/tablet — tiled background for long legal pages */
@media (max-width: 1023px) {
  .legal-page-body .site-shell::before {
    background-image: url("../assets/mobile-screen-bg.png");
  background-image: image-set(url("../assets/mobile-screen-bg.webp") type("image/webp"),
                              url("../assets/mobile-screen-bg.png") type("image/png"));
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center top;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    min-height: 100%;
  }
}

.legal-page-section {
  flex: 1;
}

.legal-page {
  width: 100%;
  max-width: none;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--figma-blue-nav);
  transition: opacity 0.2s ease;
}

.legal-page__back:hover {
  opacity: 0.75;
}

.legal-page__back svg {
  flex-shrink: 0;
}

.legal-page__title {
  margin-bottom: 3rem;
}

.legal-page__body {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.legal-block {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--figma-muted-line);
}

.legal-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-block__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.legal-block__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-block__content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--figma-black);
}

.legal-block__content h3:first-child {
  margin-top: 0;
}

.legal-block__content p {
  margin: 0;
}

.legal-block__content ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-block__content a {
  color: var(--figma-blue-nav);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.legal-block__content a:hover {
  opacity: 0.8;
}

.legal-block__content address {
  font-style: normal;
  line-height: 1.7;
}

/* Imprint layout */
.legal-imprint {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .legal-imprint {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
  }

  .legal-imprint-block--full {
    grid-column: 1 / -1;
  }
}

.legal-imprint-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--figma-black);
}

.legal-imprint-block p {
  margin: 0;
}

.legal-imprint-block address {
  font-style: normal;
  line-height: 1.7;
}

/* Footer legal links */
.footer__bottom-links a.is-active {
  color: var(--figma-white);
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.footer__bottom-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.footer__bottom-links a:hover {
  color: var(--figma-white);
}

.footer__bottom-links .footer__sep {
  margin-inline: 0;
}

@media (max-width: 639px) {
  .legal-page__title {
    margin-bottom: 2rem;
  }

  .legal-page__body {
    gap: 2.5rem;
  }

  .legal-block {
    padding-bottom: 2.5rem;
  }

  .footer__bottom-links {
    margin-top: 1rem;
  }
}
