It's all free software (libdvd-pkg is a script). In certain countries, it's
illegal to break digital handcuffs, artificial restrictions, even for the
sake of freedom.
https://www.videolan.org/developers/libdvdcss.html
libdvdcss is released under the General Public License, ensuring it will stay
free, and used only for free software products.
On Debian and Ubuntu, you can install libdvdcss via libdvd-pkg helper
package:
sudo apt install libdvd-pkg
And by running the following command, which will download, build and install
the latest libdvdcss source to your machine:
sudo dpkg-reconfigure libdvd-pkg