For what it’s worth, according to comments on this (unfortunately-named) thread, there will be a graphical option to disable memberships and subscriptions out soon.
The potential issue with CSS fixes is that it only hides the signup form; someone who’s sufficiently motivated (or an automated bot) could still access the URL directly. The best workaround right now is to remove the code from the associated template if you can.