Only thing I can think of re. the brace hinge is that it needs to fold flush, which usually means that it needs to be sliding or pivot such that the hinge center of rotation is close to the legs pivot axis.
Could you hinge the braces to the lower leg crosspiece and have the other end register in a pocket or pin to a bracket on the underside of the top?