The parent granted legal custody of a minor child by a divorce decree or a written separation agreement.