To determine the legal status of an agreement in restraint of marriage:
1. Under Section 26 of the Indian Contract Act, 1872, any agreement in restraint of the marriage of a person, other than a minor, is void.
2. This is to protect individual freedom to marry, except in cases involving minors where parental consent may apply.
3. The agreement is not valid, voidable, or merely immoral—it is explicitly void.
Therefore, the correct answer is (2) Void.