.legal-main {
  position: relative;
  z-index: 2;
  padding: 56px 0 88px;
  background: var(--bg);
}

.contact-side h1 {
  position: relative;
  color: #fff;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.legal-document.pp-modal {
  max-width: none;
  max-height: none;
  margin: 0 auto;
  opacity: 1;
  overflow: hidden;
  transform: none;
  transition: none;
}

.legal-document .pp-head h1 {
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
}

.legal-document .pp-body {
  flex: 0 1 auto;
  overflow: visible;
  overscroll-behavior: auto;
}

.legal-document .pp-foot {
  justify-content: space-between;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1cb4ff 0%, #0091e6 100%);
  box-shadow: 0 8px 20px rgba(0, 144, 230, 0.28);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-home-link:hover {
  box-shadow: 0 12px 26px rgba(0, 144, 230, 0.36);
}

@media (max-width: 560px) {
  .legal-main {
    padding: 32px 0 56px;
  }

  .legal-document .pp-foot {
    justify-content: center;
    text-align: center;
  }
}

/* Document card spans the shared site width; keep paragraph line length readable */
.legal-document .pp-sec p,
.legal-document .pp-sec li {
  max-width: 100ch;
}
