The 'iddah period for an Islamic divorce is 3 menstrual cycles, or 3 months if a woman is within the age of menstrual cycle but does not menstruate, or delivery of a child if she is pregnant.
The 'iddah takes effect and commences when the shar'i divorce is conducted. If the court divorce is also an Islamic shar'i court, then it would have that effect as well.
However, if it is a civil/legal divorce, and not a shar'i divorce, she is still Islamically married to her husband and they must initiate procedure of Islamic divorce for her to commence her 'iddah.
And Allah knows best.