Carlos Alberto Arroyo del Río, El jurista