Bridgend and Neath Port Talbot councils have agreed the terms of a section 106 agreement and have revised conditions relating to an alternative restoration scheme for the former Margam surface coal mine.