The role of context in case-based legal reasoning: teleological, temporal, and procedural