It's rare that there's a deal which seems good for both parties, but in the case of Ronaldo it's probably true.
Juve have the one player that's likely to make the difference in winning the Champions League. Madrid have a profit on a 33 year old.
As for Mahrez to Man City... Bought for...