/* ============================================
   Legal Page Styles
   ============================================ */

/* --- Container --- */
.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero (blue background) --- */
.legal-hero {
  background: var(--surface-dark);
  padding: 120px 0 48px; /* extra top padding for fixed nav */
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-updated {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Table of Contents --- */
.legal-toc {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.legal-toc a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- Content --- */
.legal-content {
  padding: 48px 0 80px;
  background: var(--white);
}

.legal-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-100);
}

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

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-section p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.legal-section ul {
  margin: 8px 0 16px 20px;
  padding: 0;
}

.legal-section li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- Table --- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-family: var(--font-body);
  color: var(--gray-600);
}

.legal-table th {
  font-weight: 600;
  color: var(--black);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gray-50);
}

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

/* --- Contact --- */
.legal-contact p {
  margin-bottom: 8px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .legal-hero {
    padding: 100px 0 36px;
  }

  .legal-toc ul {
    flex-direction: column;
    gap: 12px;
  }

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

  .legal-table {
    font-size: 13px;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }
}
