Hello
Yes, regimen comunitario and general ar two different immigration names to differentiate the rules that apply for the authorizations but they are both legal in terms of being authorized to reside in Spain.
You say that you are not yet legal? But you mentioned in your message you got a 5 year residence card. I am afraid your message is confusing, so please clarify so I can give you the correct advice.
If you divorce ( and you are a legal resident with the 5 year residence card as the relative if an EU citizen ), you can shift to a residence permit under regimen general; that is, you will still have a legal status but no longer considered under the ruling for those that are relatives of EU citizens.
Regards,
Bookmarks