/* /rules — rebuilt 1:1 from mafincash's real "MafinCash.com – User Agreement" (see
   views/rules.php header comment). Card-per-section layout matching /aml-kyc's design
   language (numbered badge + title, chip tags for the platform list). */
.doc { margin: 8px 0 32px; }
.doc__title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; line-height: 1.2; }
.doc__subtitle { color: var(--muted-foreground); font-size: var(--fs-small); margin: 0 0 22px; }
.doc__search { margin: 0 0 26px; }
.doc__empty { padding: 24px; text-align: center; color: var(--muted-foreground); font-size: var(--fs-small); }

.doc__section {
  margin: 0 0 16px; padding: 20px 24px; border: 1px solid var(--border);
  border-radius: var(--radius-2xl); background: var(--card); box-shadow: var(--shadow-xs);
}
.doc__section[hidden] { display: none; }
.doc__section:last-child { margin-bottom: 0; }
.doc__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.doc__num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--secondary); color: var(--primary); font-weight: 800; font-size: var(--fs-small); display: inline-flex; align-items: center; justify-content: center; }
.doc__h { font-size: var(--fs-base); font-weight: 700; margin: 0; }
.doc__p { color: var(--muted-foreground); font-size: var(--fs-small); line-height: 1.65; margin: 0 0 10px; }
.doc__p[hidden] { display: none; }
.doc__p:last-child { margin-bottom: 0; }

.doc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.doc__tags[hidden] { display: none; }
.doc__tag {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--muted); color: var(--muted-foreground); font-size: var(--fs-xs); font-weight: 600;
  border: 1px solid var(--border);
}

.doc__list { margin: 4px 0 10px; padding-left: 22px; color: var(--muted-foreground); font-size: var(--fs-small); line-height: 1.65; }
.doc__list[hidden] { display: none; }
.doc__list li { margin-bottom: 6px; }
.doc__list li:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .doc__title { font-size: var(--fs-h3); }
  .doc__section { padding: 16px 18px; }
}
