Intellectual property is generally handled through the Consortium Agreement. However, there are a number of regulations that apply to Horizon 2020 projects. You can read all details in the Fact Sheet "IP Management in Horizon 2020: project proposal": https://www.iprhelpdesk.eu/FS_IP_Management_H2020_proposal