Medieval law in context