Legal sector grows despite rising costs