To check if an agreement is legal, verify that it includes clear terms, mutual consent, lawful purposes, and compliance with relevant laws and regulations; ensure all parties understand and agree to the terms, and consider consulting a legal professional to review the document for completeness and enforceability.