Original: Although the contract, too, banned her from leaving the convent, Marguerite Louise often went to her cousin Louis XIV's court at Versailles, where she gambled for high stakes.
Simplified: Although the contract, banned her from leaving the convent, Marguerite Louise often went to her cousin Louis XIV's court at Versailles.