Legion: Foundations