The problem is that patenting something doesn't require one to put a lot of time and effort - just to produce few pages of text and diagrams. So it might be sufficient for somebody to have a general idea.
Then 25 years is too much.
A good example(old enough to not matter any more) is the how the Wright brothers invented something fundamentally new, their patent was on how to control an airplane, The problem is, once you see it, it is obvious how to control an airplane. Birds do it, Why should such an simple thing be protected? But conversely. This is a discipline that took the Wrights many years of hard and meticulous work to figure out. Is it morally correct to say "No, we are not going to grant you exploitation rights to this thing you invested so much time and effort developing"?
"Buying something over the web", Amazon, 1997: https://patents.google.com/patent/US5960411A/en
"Rounded corners in a GUI", Apple, 2014: https://patents.google.com/patent/US9396565B2/en
Sometimes it is significantly harder. Often it's just a matter of luck
No. it is no way shape and form, good. 25 years is eternity in tech. The impact of the tech is not all that much related to investment either. You are just stifling any competition in the market
> It is an attempt to solve the real problem that it is much harder to be first than second, the guy in first place has to spend all that time and effort to develop the thing, and the guy in second just has to copy the guy in first. To rectify this social injustice the patent system was developed, where the government would grant and enforce economic exploitation rights of the mechanism to the inventor.
It has completely wrong structure for that. First, the duration. Second, the way you can patent vague idea, not actual concrete implementation. It is not used to stop competition from just copying your product, it is stopping anyone in market to compete.