/* ========================================
   Legal Pages (Privacy & Terms)
   ======================================== */

.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-light);
}

.legal-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.legal-content {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ol,
.legal-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section ul {
  list-style: disc;
}

.legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-section li ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.legal-section strong {
  color: var(--text);
}

/* Table */
.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

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

/* Info Box */
.legal-info-box {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.legal-info-box p {
  margin-bottom: 8px;
}

.legal-info-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.legal-info-box li {
  font-size: 14px;
  margin-bottom: 4px;
}

/* Footer active link */
.footer-legal a.active {
  color: #fff;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .legal-header h1 {
    font-size: 24px;
  }

  .legal-section h2 {
    font-size: 18px;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 12px;
    font-size: 13px;
  }
}
