/* ==========================================================================
   pages/legal.css — Privacy Policy and Terms and Conditions
   Light pages: white ground, a Pineapple Lawyer logo tiled at 20% opacity as
   a watermark, black copy on a strict 24px line grid.
   Live anchors @1440: band starts 301, first line 513 (212px pad-top),
   last line ends 1881, band ends 2089 (208px pad-bottom).
   ========================================================================== */

.page-legal {
  background-color: #ffffff;
}

.legal {
  position: relative;
  background-color: #ffffff;
  padding-block: 212px 208px;
  overflow: hidden;
}

/* Watermark layer — the logo tiled at natural size, faded back */
.legal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../img/pineapple-lawyer-logo-black.png');
  background-repeat: repeat;
  background-position: 50% 50%;
  background-size: auto;
  opacity: 0.2;
  pointer-events: none;
}

.legal > * {
  position: relative;
  z-index: 1;
}

/* ---- Copy: every line sits on a 24px grid ------------------------------ */

.legal p,
.legal li {
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 24px;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

.legal p strong,
.legal .legal__h {
  font-weight: 700;
}

.legal__h {
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 24px;
  color: #000000;
  margin: 0;
}

/* one blank line before a block */
.legal .sp {
  margin-top: 24px;
}

.legal ul {
  margin: 0;
  padding-left: 32px;
  list-style: disc;
}

.legal a {
  color: #000000;
  text-decoration: none;
}

.legal a:hover {
  color: #000000;
  text-decoration: underline;
}

/* Terms adds a larger 24px/36px heading tier */
.legal__big {
  font-family: var(--f-ui);
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: #000000;
  text-align: left;
  margin: 0;
}

.legal .sp22 { margin-top: 22px; }
.legal .sp34 { margin-top: 34px; }
.legal .sp48 { margin-top: 48px; }

.legal--terms {
  padding-block: 214px 208px;
}

/* Mobile: full-bleed copy; terms drops to 13px, privacy stays at 16px */
@media (max-width: 767px) {
  .legal {
    padding-block: 15px 60px;
  }

  .legal .container {
    padding-inline: 0;
  }

  .legal--terms {
    padding-block: 15px 60px;
  }

  .legal--terms p,
  .legal--terms li,
  .legal--terms .legal__h {
    font-size: 13px;
    line-height: 19.5px;
  }

  .legal--terms .legal__big {
    font-size: 19px;
    line-height: 28.5px;
  }

  .legal--terms .sp { margin-top: 28.5px; }
  .legal--terms .sp22 { margin-top: 18px; }
  .legal--terms .sp34 { margin-top: 28px; }
  .legal--terms .sp48 { margin-top: 39px; }
}
