I'm pretty sure it's not legal. Even on the off chance it was, you would still need a leading and trailing edge of wood, and probably some spars to give the foam some strength. In the end, what have you gained other than excess weight. The Original PDQ style of wing is very simple to build (ie. center planked, with solid shaped leading and trailing edge with uncapped ribs and sheet balsa tips) I doubt it could be done simpler, and lighter with foam. I used 1/16 ply center planking on mine, it makes for a very strong wing joint that survived a full power crash in Tucson a year ago.
Les