Solicitor handed record £305k fine