The increasing pace of data collection has led to increasing awareness of privacy risks, resulting in new data privacy regulations like General data Protection Regulation (GDPR). Such regulations are an important step, but automatic compliance checking is challenging. In this work, we present a new paradigm, . We introduce a solution for static enforcement of privacy policies based on the concept of residual policies, and present a novel algorithm based on abstract interpretation for deriving residual policies in PRIVPOLICY. Our solution ensures compliance automatically, and is designed for deployment alongside existing infrastructure. We also design and develop PRIVGUARD, a reference data capsule manager that implements all the functionalities of Data Capsule paradigm.