Scalable and explainable legal prediction