Lopez, 44, and Anthony, 45, will share custody of twins Max and Emme, 6, with Anthony getting physical custody of them for seven days per month.
The court documents detail how the exes are to split custody of the children on school vacations, birthdays and holidays including Christmas, Thanksgiving and Halloween. The couple have also agreed to protect the twins from paparazzi intrusion and ensure that they “are not exposed to unwanted publicity.”
Lopez and Anthony wed in June 2004 in a casual, and secret, ceremony at Lopez’s Beverly Hills home.
Both singers are now legally free to marry others, but Lopez, who split with boyfriend of 2½ years, Casper Smart, 26, earlier this month, told PEOPLE in January that she wasn’t sure if she would get hitched for a fourth time. “You know, I’ve always believed in that institution. I believe in it, but it is difficult.”
“I’ve had my challenges,” she added, “but at the same time I believe in love, and I think that is the main thing.”
• Reporting by JENNIFER GARCIA