Is patent writing the same as legal documents?

It's different.

1. A patent is a patent right, and patent writing is obtained after a successful patent application.

2. Legal documents are documents used by judicial administrative organs, parties and lawyers in solving litigation and non-litigation cases, including non-normative documents of judicial organs.