/* ═══════════════════════════════════════════════════════════
   MADROSRPG — Legal pages stylesheet
═══════════════════════════════════════════════════════════ */

.legal-main {
  min-height: 100vh;
  padding: calc(var(--navbar-h) + 64px) 0 100px;
  background: var(--bg-0);
}

.legal-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 12px 0 10px;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Intro */
.legal-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sections */
.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}
.legal-icon svg {
  width: 18px;
  height: 18px;
}

.legal-section p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Numbered list */
.legal-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: legal-counter;
}

.legal-list li {
  counter-increment: legal-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-list li::before {
  content: counter(legal-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-hover);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Footer note */
.legal-footer-note {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-footer-note a {
  color: var(--purple-light);
  transition: color var(--transition);
}
.legal-footer-note a:hover {
  color: var(--purple);
}
