Both.... But the up & down plus front to rear gap adjustment is on the body....In & out as well as twist is on the door...
First thing to check is the condition of the hinges, cause if they are loose the door adjustment won't fix it.... Open the door just clear of the jamb... Now try lifting at the latch end of the door... It shouldn't move much, less than 1/4" If the hinge is toast 1/2-3/4" is pretty common.... If thats the case you should rebuild the hinges but if thats not an option I've cheated & adjusted the hinges & while it isn't perfect it will help for awhile...