Rooting is a fully legal process, specially in our country India where none of our phones are carrier locked, with a restriction that the rooting should be done to use the legal apps.
More details can be found here : - http://en.wikipedia.org/wiki/Android_rooting
This post is only for informative purpose, any damage to your device will be your own responsibility.