Answer:
It very much depends on the legislation of the country where you live.
Such legislation varies enormously. Many countries have none, in others it may be decreed when you have reached your majority. Usually 18 to 21 years old in many cases. It would be advisable to take local legal advice.