 .container {
     max-width: 1200px;
     margin: 0 auto;
     background-color: white;
     border-radius: 8px;
     box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
     overflow: hidden;
     padding: 0%;
     margin-top: 2%;
     margin-bottom: 2%;
 }

 .contract-header {
     background-color: #2c3e50;
     color: white;
     padding: 20px;
     cursor: pointer;
     display: flex;
     justify-content: space-between;
     align-items: center;
     transition: background-color 0.3s;
 }

 .contract-header:hover {
     background-color: #1a252f;
 }

 .contract-title {
     font-size: 24px;
     font-weight: bold;
 }

 .contract-icon {
     font-size: 20px;
     transition: transform 0.3s;
 }

 .contract-details {
     padding: 0;
     max-height: 0;
     overflow: hidden;
     transition: all 0.5s ease;
     background-color: #fff;
 }

 .contract-details.open {
     padding: 30px;
     max-height: none;
     overflow-y: auto;
 }

 .contract-content {
     font-size: 14px;
     text-align: justify;
 }

 .contract-section {
     margin-bottom: 25px;
     page-break-inside: avoid;
 }

 .section-title {
     font-weight: bold;
     color: #2c3e50;
     margin-bottom: 10px;
     font-size: 16px;
     border-bottom: 2px solid #3498db;
     padding-bottom: 5px;
 }

 .subsection {
     margin-left: 20px;
     margin-bottom: 15px;
 }

 .subsection-title {
     font-weight: bold;
     margin-bottom: 8px;
     color: #34495e;
 }

 .clause {
     margin-bottom: 10px;
     text-align: justify;
 }

 .highlight {
     color: #e74c3c;
     font-weight: bold;
 }

 .italic {
     font-style: italic;
 }

 .subsection ul {
     margin-left: 30px;
     margin-bottom: 15px;
 }

 .subsection ul li {
     margin-bottom: 8px;
 }

 @media print {
     .contract-header {
         background-color: #000 !important;
         color: #fff !important;
         -webkit-print-color-adjust: exact;
     }

     .contract-details {
         max-height: none !important;
         padding: 30px !important;
         display: block !important;
     }
 }

 @media (max-width: 768px) {
     .container {
         margin: 10px;
     }

     .contract-details.open {
         padding: 20px;
     }

     .contract-content {
         font-size: 13px;
     }
 }