
    Edith K. Spiegel et al., Appellants-Respondents, v 1065 Park Avenue Corporation et al., Respondents-Appellants.
    [759 NYS2d 461]
   Order, Supreme Court, New York County (Diane Lebedeff, J.), entered July 15, 2002, which, in a declaratory judgment action involving plaintiff tenant/shareholder’s right to sublet the subject apartment, upon the parties’ respective motions for summary judgment, inter alia, declared that plaintiffs remedy for any unreasonable withholding of consent by defendant managing agent to the subletting is not judicial review but rather a further application for consent addressed to defendant cooperative’s Board of Directors or shareholders, unanimously modified, on the law, to vacate the above declaration and to declare instead that paragraph 38 of the proprietary lease, and the second paragraph of article V, section 4 of the cooperative’s bylaws violate Business Corporation Law § 501 (c), that plaintiff is not entitled to special subletting privileges by reason of such provisions, and that plaintiff cannot sublet the subject apartment without the consent of the cooperative’s Board of Directors or shareholders, and otherwise affirmed, without costs.

Insofar as pertinent, the above paragraphs of the proprietary lease and bylaws provide that original purchasers of the cooperative’s shares, such as plaintiff, need the consent of only the cooperative’s managing agent in order to sublet their apartments, which consent is not to be unreasonably withheld, and that if such consent is withheld, an original purchaser can apply for consent to the Board of Directors or shareholders as provided in paragraph 15 of the proprietary lease. The latter paragraph prohibits all nonoriginal purchasers from subletting their apartments without the consent of the Board or a super-majority of the lessees, which consent can be withheld for any or no reason. Plaintiff claims that the managing agent unreasonably withheld his consent and seeks, inter alia, an injunction compelling its consent.

There is no question that lease paragraph 38 and the related bylaw provision violate Business Corporation Law § 501 (c) by giving original purchasers more favorable subletting rights than nonoriginal purchasers (see Wapnick v Seven Park Ave. Corp., 240 AD2d 245, 246-247 [1997]). The only question is whether the cooperative waived or should be estopped from asserting the illegality of such preferential treatment. We hold not. The defense of illegality, i.e., that a contract is void as against public policy, is not waived by a failure to affirmatively plead it in an answer, and will be entertained without reference to the state of the pleadings (Attridge v Pembroke, 235 App Div 101, 102-103 [1932]; see Carlson v Travelers Ins. Co., 35 AD2d 351, 353-354 [1970]), at least where its interposition does not take the plaintiff by surprise (CPLR 3018 [b]; cf. Rogoff v San Juan Racing Assn., 54 NY2d 883 [1981]). Here, plaintiff could not have been surprised by the cooperative’s assertion of section 501 (c) in its motion for summary judgment where such had been raised by the cooperative in a prior motion for summary judgment that was denied with leave to renew upon completion of disclosure.

Nor can waiver or estoppel based on the cooperative’s conduct be relied upon to enforce corporate documents that are contrary to public policy (see Millington v Rapoport, 98 AD2d 765, 766 [1983]). Thus it does not avail plaintiff that she relied on the sponsor’s offer of special subletting privileges in buying the apartment, that the cooperative learned of her intent to sublet the apartment when she purchased a second larger apartment in the building with her husband, that the cooperative is continuing to permit subletting by other original shareholders and that the cooperative is itself subletting an apartment. In this regard we also note the “no waiver” clause in the proprietary lease (see Katz v 215 W. 91st St. Corp., 215 AD2d 265, 267 [1995]). Concur — Tom, J.P., Andrias, Saxe and Williams, JJ.  