/* Long-form legal prose (/rules, /privacy — both rendered by templates/legal.stpl).
   These pages are read, not scanned, so the layout is tuned for a comfortable measure
   (~70 characters) and generous leading rather than for the card grid the rest of the site uses. */

.legal-container {
  padding-top: 24px;
  padding-bottom: 40px;
}

.legal-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-display);
  color: var(--velvet);
  font-size: 1.9rem;
  margin: 0 0 6px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.legal-intro {
  font-size: 1.02rem;
  line-height: 1.7;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.legal-section {
  margin-top: 28px;
}

.legal-section-title {
  font-family: var(--font-display);
  color: var(--velvet);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.legal-section p {
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-list {
  /* The list items continue the sentence in the paragraph above them (". . . забороняється
     розміщувати:"), so they read as clauses rather than as standalone bullets — hence the
     tighter left inset and the accent hairline tying them back to that lead-in. */
  margin: 0 0 12px;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}

.legal-list li {
  line-height: 1.65;
  margin-bottom: 8px;
  /* theme.css resets `li { list-style-type: none }` globally (to strip markers off the navbar
     dropdowns); these are real enumerated clauses of a legal document, so put the marker back
     for this list only rather than loosening the global rule. */
  list-style-type: disc;
}

.legal-list li::marker {
  color: var(--rose);
}

.legal-related {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 576px) {
  .legal-card {
    padding: 20px 16px;
  }

  .legal-title {
    font-size: 1.5rem;
  }

  .legal-section-title {
    font-size: 1.12rem;
  }
}
