/* Simple text pages: privacy, terms. */
@layer sections {
  .pl-legal {
    flex: 1 0 auto;
  }

  /* Long Georgian words must not push the page sideways at 360px. */
  .pl-legal__title {
    overflow-wrap: break-word;
  }

  /* Small phones: 28px from about 415px up; below, just small enough for
     "კონფიდენციალურობის" (12.75em wide) to fit the row instead of being cut
     in the middle of the word. */
  @media (max-width: 480px) {
    .pl-legal__title {
      font-size: clamp(24px, (100vw - 40px) * 0.075, 28px);
    }
  }

  .pl-legal__body {
    max-width: 40em;
    margin: 16px 0 24px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--pl-muted);
  }

  /* The privacy policy: its date, then the text in sections. Mobile first: one
     column, 16px, the measure capped at 40em for long lines on a desktop. */
  .pl-legal__updated {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--pl-muted);
  }

  .pl-legal__text {
    max-width: 40em;
    margin: 20px 0 28px;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }

  .pl-legal__text p {
    margin: 0 0 12px;
  }

  .pl-legal__heading {
    margin: 28px 0 10px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
  }

  .pl-legal__list {
    margin: 0 0 12px;
    padding-left: 1.2em;
    list-style: disc;
  }

  .pl-legal__list li {
    margin: 0 0 8px;
  }

  .pl-legal__contact {
    display: inline-block;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  @media (min-width: 768px) {
    .pl-legal__text {
      font-size: 17px;
    }

    .pl-legal__heading {
      font-size: 21px;
    }
  }

  .pl-legal__back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
  }
}
