Dtharrett:
Take the gravity load vector through the CG as one loading; and a lateral load vector through the CG, what ever that might be, from wind, EQ or some other lateral load; project the resultant of these two loads to the base/slab, and if it touches the ground within the box formed by the four legs, it is technically stable. You factor the loads for your own safety liking, etc. EQ lateral loads act at the CG (center of mass), other lateral loads may have to be converted to act at the CG, assuming either load produces the same lateral moment about the base. In either case you are just summing the moments about the legs; the gravity load (DL only) acting as a righting moment; while the lateral load produces an overturning moment, which must always be smaller than the lightest righting moment.