From a rule-based conception to dynamic patterns. Analyzing the self-organization of legal systems