/* ================================
   LEGAL PAGES
   Terms, Privacy, Cookie Policy styling
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

.page-legal {
  background: var(--bg-page);
}

.legal-content {
  padding: 4rem 0;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-header h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.legal-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

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

.legal-section h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--accent-primary-hover);
}

.legal-section strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.legal-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.legal-footer p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.legal-updated {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.legal-table th {
  background: var(--badge-teal-bg);
  color: var(--accent-primary);
  font-weight: var(--weight-semibold);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

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

.legal-table tbody tr:nth-child(even) td {
  background: var(--bg-subtle, #fafafa);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 2rem 0;
  }

  .legal-header h1 {
    font-size: var(--text-3xl);
  }

  .legal-section h2 {
    font-size: var(--text-lg);
  }

  .legal-table th,
  .legal-table td {
    padding: 0.6rem 0.75rem;
  }
}
