Legal protection of inventions