GDPR and Spanish Data Protection Law in Law Firms: Practical Obligations (2026)
Practical guide to data protection for lawyers: GDPR, LOPDGDD, professional secrecy and special categories, controller vs. processor, DPO, AEPD sanctions and basic firm compliance.
Data Protection in the Law Firm
The Regulation (EU) 2016/679 (GDPR) and the Organic Law 3/2018 (LOPDGDD) (Spain's Data Protection and Digital Rights Act) impose specific obligations on law firms as data controllers of the personal data of clients, employees, and witnesses. Non-compliance can lead to fines of up to 4% of global annual turnover or €20 million.
The Law Firm as Data Controller
The law firm (whether a sole practitioner or a partnership) is the data controller of the data it processes in the course of its professional activity. It determines the purposes and means of the processing.
Data Processed by a Law Firm
- Client data: identification, family, financial, employment, and judicial status
- Opposing party data: identified in the case file
- Witness and expert witness data
- Law firm employee data
- Supplier data
Much of this data falls under special categories (health data, racial/ethnic origin, beliefs, sexual orientation, criminal records; Art. 9 GDPR), which require enhanced legal bases and additional security measures.
Professional Secrecy and Personal Data
Lawyer professional secrecy (Art. 542.3 LOPJ (Organic Law of the Judiciary); Arts. 21–23 EGAE (General Statute of the Spanish Legal Profession)) coexists with the GDPR. The GDPR does not override professional secrecy, on the contrary, professional secrecy may itself serve as the legal basis for refusing to disclose data to third parties who request it (including authorities in certain cases).
However, professional secrecy does not exempt a firm from complying with GDPR obligations within the firm itself (records of processing activities, technical/organisational measures, client information).
Legal Bases for Processing (Art. 6 GDPR)
For the processing of client data, the primary basis is the performance of a contract for the provisión of legal services (Art. 6.1.b GDPR). For special category data (health, etc.), explicit consent (Art. 9.2.a) or compliance with a legal obligation (Art. 9.2.f in judicial proceedings) may be required.
Core Obligations of the Law Firm
1. Records of Processing Activities (Art. 30 GDPR)
Mandatory for all law firms (not just large ones). Must include: purposes of processing, categories of data, recipients, retention periods, and security measures.
The AEPD (Agencia Española de Protección de Datos; Spain's Data Protection Authority) offers a free tool (Facilita RGPD) to generate a basic record.
2. Privacy Policy / Information to Data Subjects (Arts. 13–14 GDPR)
Clients must be informed at the point of data collection (or at first contact) of: the identity of the controller, the purpose and legal basis for processing, the retention period, the data subject's rights, and, where applicable, any disclosures to third parties (e.g., transmission of data to public authorities or opposing parties in litigation).
3. Data Processing Agreements with Processors (Art. 28 GDPR)
Where the firm entrusts processing to third parties (practice management software, cloud services, payroll providers, IT services), it must enter into a data processing agreement ensuring the third party complies with the GDPR.
Implication for legal software (such as Lexiel): the law firm and the software provider must have a signed DPA (Data Processing Agreement) in place in accordance with Art. 28 GDPR.
4. Technical and Organisational Security Measures (Art. 32 GDPR)
- Encryption of devices and email communications containing client data
- Strong passwords and two-factor authentication
- Encrypted backups
- Clean desk and clear screen policies
- Staff training on data protection
- Security breach response procedures
5. Notification of Security Breaches (Arts. 33–34 GDPR)
If a security breach occurs that poses a risk to the rights of those affected, the firm must notify the AEPD within 72 hours (Art. 33 GDPR). If the risk is high, those affected must also be informed directly.
6. Data Subject Rights (Arts. 15–22 GDPR)
Access, rectification, erasure ("right to be forgotten"), restriction, portability, and objection. The firm must have a procedure in place to respond within 1 month (extendable to 3 months in complex cases).
DPO (Data Protection Officer)
Law firms are not required to appoint a DPO unless they carry out large-scale processing of special category data or engage in systematic monitoring activities (unlikely for ordinary practices). However, voluntary appointment is considered best practice for medium-sized and large firms.
AEPD Sanctions
Infringements are classified as:
- Very serious (Art. 83.5–6 GDPR): up to €20M or 4% of annual turnover
- Serious (Art. 83.4 GDPR): up to €10M or 2% of annual turnover
- Minor (LOPDGDD Art. 74): a formal warning or a fine of up to €40,000
The AEPD has sanctioned law firms for: failure to include information clauses in service contracts, disclosure of data to third parties without a legal basis, and absence of basic security measures.
Conclusion
GDPR compliance in a law firm is not optional, and the intersection with professional secrecy makes this an especially sensitive area. The minimum requirements are: records of processing activities, information clauses in client contracts, and data processing agreements with software providers and external services.
Lexiel is an AI-powered legal software solution with a GDPR-compliant DPA. All firm data is processed in accordance with certified security measures.
Try Lexiel free · 28 days
Use code LEX-BLOG for double the standard trial period. Cancel anytime, no commitment.