If there are no such laws, it's completely legal, and since law doesn't work backwards, if it's ever outlawed, nobody will be able to prosecute you for using it in the past.
1) There are grey areas in law, subject to interpretation. The government may prosecute you based on current interpretation of law, for your past actions.
2) Some countries have enacted laws with
retrospective effect.
https://www.alrc.gov.au/publications/laws-retrospective-operation-0