Judges in custody disputes are required to focus on the best interests of the child, and are increasingly taking smoking into account. The Tobacco Control Legal Consortium has produced an excellent summary of your rights and how to exercise them at: https://publichealthlawcenter.org/resources/secondhand-smoke-and-family-courts-role-smoke-exposure-custody-and-visitation-decisions.