Lawyer pleads guilty to sex with minor