You did ethically wrong but that is not illegal. https://www.gravityforms.com/terms-and-conditions/
Gravity Forms is licensed under the GNU general public license (http://www.gnu.org/licenses/gpl-3.0.txt).
You have a lot of freedom with such tools.