/* Shared by the two legal text pages: /pirksanas-noteikumi and /privatuma-politika.
   Page-specific values (title position, underline width, section paddings) live in the
   page's own CSS file.

   Text rhythm: blocks in the body are one blank line (2.24rem) apart by default. The old
   pages were hand-spaced, so a few blocks carry a helper class to keep their spacing:
     .is-tight  follows the previous block directly      .is-half  half a line of space
     .is-wide   one and a half lines of space            .is-left  not justified
   Where the phone layout was spaced differently, an m-… class sets the phone spacing:
     .m-tight (none)   .m-line (one line)   .m-wide (one and a half)   .m-double (two lines)   */

/* ---------- Intro: grey band with the title and a lead text ---------- */
.legal-intro { padding: 3.3rem 0 4.8rem; background: rgba(194, 195, 190, .8); color: var(--green-900); }
.legal-intro h1 { position: relative; margin-bottom: 9.2rem; font-size: 3.8rem; line-height: 3.9rem; }
.legal-intro h1::after { /* lilac underline, well below the title */
  content: ""; position: absolute; left: 0; top: 9rem; border-top: .5rem solid var(--lilac-500);
}
.legal-intro p { font-size: 2rem; line-height: 2.8rem; text-align: justify; }
.legal-intro p + p { margin-top: 2.8rem; }

/* ---------- Body: numbered sections on sage green ---------- */
.legal-body { background: var(--sage); color: var(--cream); font-size: 1.6rem; line-height: 2.24rem; }
.legal-body h2 { font-weight: var(--bold); font-size: 2rem; line-height: 2.8rem; color: var(--purple); }
.legal-body p, .legal-body ul { text-align: justify; }
.legal-body h2, .legal-body p, .legal-body ul { margin-top: 2.24rem; }
.legal-body .column > :first-child { margin-top: 0; }
.legal-body ul { padding-left: 2.9rem; list-style: disc; }
.legal-body .is-tight { margin-top: 0; }
.legal-body .is-half { margin-top: 1.12rem; }
.legal-body .is-wide { margin-top: 3.36rem; }
.legal-body .is-left { text-align: left; }
.legal-body a { text-decoration: none; transition: color .2s ease; }
.legal-body a:hover { color: var(--lilac-100); }

@media (max-width: 600px) {
  .legal-intro { padding: 6.4rem 2rem 8.6rem; }
  .legal-intro h1 { margin-bottom: 7.4rem; font-size: 2.8rem; line-height: 2.8rem; }
  .legal-intro h1::after { top: calc(100% + 3.2rem); width: 4rem; }
  .legal-intro p { font-size: 1.8rem; line-height: 2.52rem; }
  .legal-intro p + p { margin-top: 2.52rem; }

  .legal-body { font-size: 1.4rem; line-height: 1.96rem; }
  .legal-body h2 { font-size: 1.9rem; line-height: 2.66rem; }
  .legal-body p, .legal-body ul { margin-top: 1.96rem; }
  .legal-body h2 { margin-top: 2.06rem; }
  .legal-body .is-tight { margin-top: 0; }
  .legal-body .is-half { margin-top: .98rem; }
  .legal-body .is-wide, .legal-body .m-wide { margin-top: 2.94rem; }
  .legal-body .m-tight { margin-top: 0; }
  .legal-body .m-line { margin-top: 2.1rem; }
  .legal-body .m-double { margin-top: 4.1rem; }
  .legal-body ul { padding-left: 2.5rem; }
}
