Complex sentence: When she was not at school, she spent her time with her family, as the divorce had been amicable and the Duke and Duchess of York had agreed to joint custody of the girls.
Split into simpler sentences: When she was not at school, she spent her time with her family, as the divorce had been amicable. The Duke and Duchess of York had agreed to joint custody of the girls.