The football referee ruled the play legal. Which definition matches the use of the word legal in this sentence?

The most suitable definition of "legal" in this sentence is "in accordance with the law; permitted by law." This implies that the football play was allowed and did not violate any rules or regulations.