judge advocate general

noun

1.
the senior legal advisor to a branch of the military