The court will examine the legality of the contract.
Tips
usage
合法性 can refer to both legality (compliance with law, 法律合法性) and legitimacy (moral or political justification, 政治合法性). Context determines which sense is meant.
memory
合法 (héfǎ) means 'legal/lawful' and 性 (xìng) is a nominalizing suffix meaning '-ness'. 合法性 = 'lawfulness/legitimacy'.