.legal-section {
  padding: 40px 20px;
  background: #f9f9f9;
  min-height: calc(100vh - 200px);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-container h1 {
  color: #b33e3e;
  margin-top: 0;
  font-size: 2.2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.legal-container h2 {
  color: #002b5b;
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.legal-container h3 {
  color: #333;
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.legal-container p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.legal-container ul, .legal-container ol {
  margin: 15px 0;
  padding-left: 25px;
}

.legal-container li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
}

.legal-container a {
  color: #b33e3e;
  text-decoration: none;
  font-weight: 500;
}

.legal-container a:hover {
  text-decoration: underline;
}

.legal-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-container th, .legal-container td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

.legal-container th {
  background-color: #002b5b;
  color: white;
  font-weight: 600;
}

.legal-container tr:nth-child(even) {
  background-color: #f8f9fa;
}

.legal-container tr:hover {
  background-color: #f0f0f0;
}

.legal-container strong {
  color: #333;
}

/* Ensure proper table alignment */
.legal-container table {
  table-layout: fixed;
}

.legal-container th:first-child, 
.legal-container td:first-child {
  width: 20%;
}

.legal-container th:nth-child(2), 
.legal-container td:nth-child(2) {
  width: 35%;
}

.legal-container th:nth-child(3), 
.legal-container td:nth-child(3) {
  width: 20%;
}

.legal-container th:last-child, 
.legal-container td:last-child {
  width: 25%;
}

/* Ensure all table content is left-aligned */
.legal-container th, .legal-container td {
  text-align: left;
}

@media (max-width: 768px) {
  .legal-container {
    padding: 25px 20px;
    margin: 0 10px;
  }
  
  .legal-container h1 {
    font-size: 1.8rem;
  }
  
  .legal-container h2 {
    font-size: 1.3rem;
  }
  
  .legal-container table {
    font-size: 0.9rem;
  }
  
  .legal-container th, .legal-container td {
    padding: 8px 10px;
  }
  
  /* Stack table on mobile */
  .legal-container table {
    table-layout: auto;
  }
  
  .legal-container thead {
    display: none;
  }
  
  .legal-container tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
  }
  
  .legal-container td {
    display: block;
    text-align: right;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 8px;
    white-space: normal;
  }
  
  .legal-container td:last-child {
    border-bottom: none;
  }
  
  .legal-container td:before {
    content: attr(data-label) ": ";
    float: left;
    font-weight: bold;
    color: #002b5b;
  }
  
  .legal-container th:first-child, 
  .legal-container td:first-child,
  .legal-container th:nth-child(2), 
  .legal-container td:nth-child(2),
  .legal-container th:nth-child(3), 
  .legal-container td:nth-child(3),
  .legal-container th:last-child, 
  .legal-container td:last-child {
    width: auto;
  }
  
  /* Left align content on mobile */
  .legal-container td {
    text-align: left;
  }
  
  .legal-container td:before {
    text-align: left;
    display: block;
  }
}