/* ==========================================================================
   Pivo — legal document styles (app terms & privacy policy)
   Loaded after styles.css; relies on its custom properties.
   ========================================================================== */

.legal {
  padding: 56px 0 88px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 44px 0 12px;
  scroll-margin-top: 90px;
}

.legal h2 + p {
  margin-top: 0;
}

.legal p {
  margin: 0 0 18px;
  color: var(--text);
  /* Legal prose is dense; a slightly softer measure keeps it readable. */
  line-height: 1.72;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 10px;
  line-height: 1.72;
}

.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--brand-strong);
}

@media (max-width: 640px) {
  .legal {
    padding: 36px 0 64px;
  }

  .legal .updated {
    margin-bottom: 28px;
  }

  .legal h2 {
    margin-top: 34px;
  }
}
