/* Minimal Legal Pages Styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  font-family: Arial, sans-serif;
}

.legal-hero {
  display: none; /* Hidden per user request */
}

.legal-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  word-wrap: break-word;
}

.legal-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.legal-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 120px 20px 40px 20px; /* Added top padding to account for header */
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Hide all icons per user request */
.legal-container i[class^="fas"],
.legal-container i[class*=" fas"],
.legal-icon,
.legal-section-number,
.legal-purpose-icon,
.legal-acknowledgment-icon {
  display: none !important;
}

.legal-content {
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  width: 100%;
  font-family: Arial, sans-serif;
}

.legal-toc {
  display: none;
}

.legal-main {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
  z-index: 1;
}

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  z-index: 1;
}

.legal-section:last-child {
  border-bottom: none;
}

/* Page title styles (replacing hero section) */
.legal-content > h1:first-child,
.legal-content h1.page-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.legal-section h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.legal-section h3 {
  font-size: 1.3rem;
  color: #34495e;
  margin: 24px 0 12px;
  font-family: Arial, sans-serif;
}

.legal-section p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: Arial, sans-serif;
}

.legal-section ul,
.legal-section ol {
  margin: 16px 0 16px 24px;
  color: #555;
  padding-left: 20px;
}

.legal-section li {
  line-height: 1.8;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.legal-section strong {
  color: #2c3e50;
  font-weight: 600;
}

.legal-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 8px;
  overflow-x: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-table thead {
  background: #027778;
  color: #fff;
  display: table-header-group;
}

.legal-table tbody {
  display: table-row-group;
}

.legal-table tr {
  display: table-row;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  display: table-cell;
  word-wrap: break-word;
  max-width: 300px;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: #f8f9fa;
}

.legal-notice {
  padding: 16px 20px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid;
}

.legal-notice-info {
  background: #e3f2fd;
  border-left-color: #2196f3;
  color: #1565c0;
}

.legal-notice-warning {
  background: #fff3e0;
  border-left-color: #ff9800;
  color: #e65100;
}

.legal-notice-success {
  background: #f1f8f4;
  border-left-color: #5cc184;
  color: #2e7d56;
}

.legal-contact {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 8px;
  margin-top: 32px;
}

.legal-contact h3 {
  color: #027778;
  margin-bottom: 16px;
}

.legal-contact p {
  margin: 8px 0;
}

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

  .legal-hero p {
    font-size: 1rem;
  }

  .legal-container {
    padding: 20px 15px;
  }

  .legal-section h2 {
    font-size: 1.4rem;
  }

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

  .legal-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 8px;
    min-width: 100px;
  }
}

@media print {
  .legal-toc {
    display: none;
  }

  .legal-hero {
    background: none;
    color: #000;
  }

  .legal-section {
    page-break-inside: avoid;
  }
}
