sex change operations are legal in iran , but women struggle under the burdens of a legal code and a value system that severely limit their freedom of action iran has a mandatory dress code for women .