/* Legal Page Specific Styles */
.legal-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.legal-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.legal-content {
  padding: 60px 0;
  background: #f8fafc;
}

.contract-header {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  border-left: 5px solid #1a365d;
}

.contract-header h2 {
  color: #1a365d;
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.contract-date {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.contract-section {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.contract-section h3 {
  color: #1a365d;
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
}

.contract-point {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.point-label {
  display: inline-block;
  background: #1a365d;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  margin-right: 15px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contract-point a {
  color: #1a365d;
  text-decoration: none;
  font-weight: 500;
}

.contract-point a:hover {
  text-decoration: underline;
}

.contact-details {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.contact-details strong {
  color: #1a365d;
}

.regulation-list {
  margin-top: 15px;
  padding-left: 40px;
}

.regulation-list li {
  margin-bottom: 10px;
  color: #374151;
}

.regulation-list strong {
  color: #1a365d;
}

.vulnerable-link {
  color: #dc2626 !important;
  font-weight: 600;
}

.vulnerable-link:hover {
  color: #b91c1c !important;
}

/* Contract Table Styles */
.contract-table-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  border: 1px solid #e2e8f0;
}

.contract-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.contract-table thead {
  background: transparent;
  color: #1a365d;
}

.contract-table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid #1a365d;
  background: transparent;
}

.contract-table td {
  padding: 20px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  background: transparent;
}

.contract-table tbody tr:nth-child(even) {
  background-color: transparent;
}

.contract-table tbody tr:hover {
  background-color: transparent;
}

.point-column {
  width: 80px;
  text-align: center;
}

.point-cell {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  background: transparent;
  color: #1a365d;
  width: 80px;
}

.content-cell {
  color: #374151;
}

.content-cell strong {
  color: #1a365d;
  font-weight: 600;
}

.content-cell a {
  color: #1a365d;
  text-decoration: none;
  font-weight: 500;
}

.content-cell a:hover {
  text-decoration: underline;
}

.regulation-list {
  margin-top: 10px;
  padding-left: 20px;
}

.regulation-list li {
  margin-bottom: 8px;
  color: #374151;
}

.regulation-list strong {
  color: #1a365d;
}

.vulnerable-link {
  color: #dc2626 !important;
  font-weight: 600;
}

.vulnerable-link:hover {
  color: #b91c1c !important;
}

/* Responsive table styles */
@media (max-width: 768px) {
  .contract-table-container {
    padding: 15px;
    overflow-x: auto;
  }
  
  .contract-table {
    font-size: 0.9rem;
  }
  
  .contract-table th,
  .contract-table td {
    padding: 12px 8px;
  }
  
  .point-column {
    width: 60px;
  }
  
  .point-cell {
    width: 60px;
    font-size: 1rem;
  }
}

/* Vulnerable Policy Styles */
.vulnerable-policy {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  border: 1px solid #e2e8f0;
}

.policy-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-section h3 {
  color: #1a365d;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.policy-section h4 {
  color: #1a365d;
  font-size: 1.2rem;
  margin: 25px 0 15px 0;
  font-weight: 600;
}

.policy-section ul {
  margin: 15px 0;
  padding-left: 30px;
}

.policy-section li {
  margin-bottom: 10px;
  color: #374151;
  line-height: 1.6;
}

.policy-section ol {
  margin: 15px 0;
  padding-left: 30px;
}

.policy-section ol li {
  margin-bottom: 15px;
  color: #374151;
  line-height: 1.6;
}

.contact-info {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin: 15px 0;
}

.contact-info p {
  margin: 5px 0;
  font-weight: 500;
}

.risk-table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.risk-table thead {
  background: #1a365d;
  color: white;
}

.risk-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #2d3748;
}

.risk-table td {
  padding: 12px 8px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  background: transparent;
}

.risk-table tbody tr:nth-child(even) {
  background-color: transparent;
}

.risk-table tbody tr:hover {
  background-color: transparent;
}

/* Responsive vulnerable policy */
@media (max-width: 768px) {
  .legal-hero h1 {
    font-size: 2.2rem;
  }

  .contract-header,
  .contract-section {
    padding: 20px;
  }

  .contract-header h2 {
    font-size: 1.3rem;
  }

  .contract-section h3 {
    font-size: 1.2rem;
  }

  .point-label {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
  }

  .vulnerable-policy {
    padding: 20px;
  }
  
  .policy-section h3 {
    font-size: 1.3rem;
  }
  
  .policy-section h4 {
    font-size: 1.1rem;
  }
  
  .risk-table {
    font-size: 0.8rem;
  }
  
  .risk-table th,
  .risk-table td {
    padding: 8px 4px;
  }
}

/* Navigation active state */
nav ul li a.active {
  color: #1a365d;
  font-weight: 600;
  border-bottom: 2px solid #1a365d;
}