Yes, an offer letter is a legal document. It is a contract signed both by the employer and employee and is valid and enforceable by an Indian court as per the Indian contract act