Most legal practice management software is built in English, for common-law firms, with Arabic added later as a translation layer. When you put that software in front of a law firm in Riyadh, the gaps show up on day one: interfaces that break when the direction flips to right-to-left, invoices that don't meet local e-invoicing rules, and workflows that don't match how Saudi courts and firms actually operate.

I'm Ahmed, co-founder of Circle AI. Over the past year I've been building CircleLaw, a legal practice management platform designed for Saudi law firms from the first line of code. This post covers the decisions that mattered most, and what I'd tell anyone building B2B SaaS for this market.

1. Arabic-first is an architecture decision, not a translation task

"Supporting Arabic" usually means translating strings. "Arabic-first" means the product is designed in Arabic and then made to work in English, and that changes a lot:

  • Layout direction is a first-class concern. We use logical CSS properties (start/end instead of left/right) so the same components render correctly in RTL and LTR without separate stylesheets.
  • Generated documents are the hard part. Screens are the easy 80%. PDFs, emails and exported reports are where Arabic text, mixed-direction content (an Arabic sentence containing a case number or an English company name) and number formatting break silently. Every generated artifact needs its own Arabic test, not just the UI.
  • Legal vocabulary is not generic vocabulary. Terms for case stages, powers of attorney and court sessions have specific meanings in Saudi practice. Getting them right is a product decision, not a localization ticket.

2. Tenant isolation: separate databases, not a tenant column

A law firm's data is about as sensitive as business data gets: client identities, case strategy, contracts, judgments. For CircleLaw we chose database-per-tenant isolation rather than the more common shared-schema approach with a tenant_id column on every table.

The trade-off is real:

  • Shared schema is cheaper to operate and simpler to migrate, but every query in the codebase must remember to filter by tenant. One missed filter is a cross-firm data leak.
  • Database-per-tenant costs more in operations (migrations run per tenant, connections must be routed correctly), but a missed filter can no longer expose another firm's data. The boundary is enforced by the database, not by developer discipline.

For a product whose customers are law firms, we decided the operational cost is worth it. The lesson we learned building it: the isolation boundary is only as strong as the code paths that don't go through a normal web request. Background jobs, signals, migrations and caches are where tenant context quietly gets lost, so those are exactly where your tests should focus.

Inside each firm, access is role-based: who can see which cases, clients and documents. One practical rule we follow: always test permissions as a regular user. Admin accounts bypass most restrictions, so tests run as an admin will happily pass while the real permission rules are broken.

3. Compliance is a feature, not a checkbox

Two regulations shape almost every design decision for Saudi B2B software:

  • ZATCA e-invoicing (Phase 2). Invoices are not just PDFs; they are signed, structured documents cleared with the tax authority, with a QR code and a chained hash linking each invoice to the previous one. Mock-testing this is not enough. Real validation against the sandbox surfaced protocol-level issues that no unit test had caught.
  • PDPL (Personal Data Protection Law). Data export, deletion requests and data residency are product requirements. For law firms, where the data lives is often the first question in a sales conversation.

Building these into the core early is far cheaper than bolting them on after the first enterprise customer asks.

4. AI that respects the domain

CircleLaw includes AI-assisted drafting for legal memos, opinions and pleadings, plus search over Saudi laws and regulations. Two principles guide that work:

  • Ground answers in real sources. Legal answers without citations are worse than no answers. Retrieval over a structured corpus of Saudi laws, with citations back to the article, matters more than model size.
  • Minimize what leaves the system. Personal data is stripped before any AI call, and sensitive identifiers never leave the platform.

5. Lessons for building B2B SaaS in Saudi Arabia

  1. Local complexity is a moat. Arabic, RTL, ZATCA and PDPL are hard, and that difficulty is exactly what keeps generic global products from serving this market well.
  2. Test the boring paths. The bugs that hurt us most were never in the main screens. They were in background jobs, generated documents and admin-only code paths.
  3. Trust is earned by reliability, not features. Law firms will forgive a missing feature. They will not forgive a data leak or a rejected tax invoice.

What's next

We're continuing to build CircleLaw alongside other Arabic-first business systems at Circle AI, including HR, CRM and spend management. If you're building for the Saudi or wider Arabic-speaking market, I'd like to compare notes. Find me on LinkedIn or X.

Learn more about CircleLaw at law.circleai.sa.