.legal-page-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  padding: 192px 0 120px;
  overflow: hidden;
}

.legal-page-container {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-page-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.legal-page-logo {
  width: 48px;
  height: auto;
}

.legal-page-title {
  font-size: 64px;
  line-height: 68px;
  font-weight: var(--regular);
  color: var(--text-dark);
  text-transform: uppercase;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin-top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-weight: var(--medium);
  color: var(--text-dark);
}

.legal-content h2 {
  font-size: 36px;
  line-height: 42px;
}

.legal-content h3 {
  font-size: 30px;
  line-height: 36px;
}

.legal-content h4 {
  font-size: 24px;
  line-height: 30px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-content a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-empty {
  text-align: center;
  color: var(--text-secondary);
}

.legal-page-element {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

.legal-page-element.leaf {
  width: 180px;
  top: 148px;
  right: 0;
}

.legal-page-element.flower {
  width: 170px;
  left: 0;
  bottom: 72px;
}

@media (max-width: 768px) {
  .legal-page-section {
    padding: 152px 0 88px;
  }

  .legal-page-container {
    width: min(100% - 32px, 920px);
    gap: 36px;
  }

  .legal-page-title {
    font-size: 42px;
    line-height: 48px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
    line-height: 26px;
  }

  .legal-content h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .legal-content h3 {
    font-size: 26px;
    line-height: 32px;
  }

  .legal-page-element {
    display: none;
  }
}
