Since a CS student is mostly exposed to LAW and Compliance, having a Law degree would be beneficial for you.
There are some good institutions which recognise CS qualification for entry to PHD courses. You can directly apply for Entry in PHD course. The list can be found out on ICSI website.