Tips for making custody agreements work long-term