Building legal domain ontologies is a prominent challenge in the ontology engineering community. The ontology builders confront issues such as the complexity of the legal domain, the difficulty of applying existing ontology engineering approaches, and the intention of developing legal models faithful to realities. In this paper, we discuss constructing a well-founded legal domain ontology, named CargO-S, for the traceability of goods in logistic sea corridors. For building CargO-S, a pattern-oriented approach is applied, supported by ontology-driven conceptual modeling, ontology layering, and ontology reuse processes. CargO-S is grounded in the unified foundational ontology UFO by using the ontology-driven conceptual modeling language OntoUML. Besides, ontology layering is proposed to simplify the development process by dividing CargO-S into three layers located at different granularity levels: upper, core, and domain. For building the upper and core layers, conceptual ontology patterns are reused from the foundational ontology UFO and the legal core ontology UFO-L. These patterns are applied, either by extension or analogy with legal rules, for building the domain layer. CargO-S is then validated by implementing the ontology as OWL and SWRL rules. Finally, the performance and the semantic accuracy of CargO-S are evaluated using a dual evaluation approach.