if you use screw I would make the screw hole about 1/8 oversize. I think they call it oblong.
That way the wood can still move. be it top or bottom.

I think screwing the bottom to the leg won’t be solid in the long run.

I like the mortise and tenon idea.

Abbas, Castro Valley, CA