It's understandable that you want to repurpose your laptop for legacy applications. Unfortunately, since Windows 7 support ended in January 2020, acquiring a valid product key from Microsoft isn't straightforward anymore. However, if your laptop previously had Windows 7 installed legally, the product key is typically embedded in the BIOS or UEFI, especially for systems manufactured around the time Windows 7 was popular.
You can try using a key retrieval tool to find the existing key embedded on your laptop, but be cautious with third-party software as it can pose security risks. Ensure you download from reputable sources and check reviews or forums for recommendations on safe tools.
Keep in mind that continuing to use Windows 7 could expose your system to security vulnerabilities, as there are no more updates or patches. It might be worth considering virtualization options or compatibility settings that allow you to run your legacy applications on a more current version of Windows.
For safety and legality, avoid downloading unauthorized copies or using hacks to bypass activation, as this could lead to further security issues or legal troubles. If you have access to a valid Windows 7 installation media with a key from another device or from a previous purchase, using that might be your best legitimate option.