How are they legal ?
Most works that are published on Project Gutenberg are now a part of the public domain. In the United States, this usually means that the book’s copyright has expired and has not been renewed, making the work the property of the public, or for the use of all.