Wood shop project help

Hey guys! I’m building a shoe rack with legs that attach at 25 deg and I’m trying to figure out how to build a jig for gluing them on that will ensure they glue down flush. I’ve attached a picture of things I’ve already tried, but the leg is still too loose. Would anyone be willing to help me brainstorm a plan on Sunday?