Did the custody rules change in the course of the film?
At the beginning of the film, the mother cannot take the daughter out of the country without the father's permission.
But at the end of the film, the daughter gets to decide which parent she'll live with. (True, the mother might not be leaving the country any longer, but still...)
Does this make sense?
Did the father perhaps tell the daughter (offscreen) that the choice was hers? But then why would the courts be involved? It's not clear to me. I thought in Iran custody would be up to the father.