/* --- Legal Pages --- */
.legal-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-section h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-section p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-section ul {
  margin: 0 0 16px 24px;
  line-height: 2;
}

.legal-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 60px 0;
}

.legal-section:has(.legal-table) {
  max-width: 900px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  table-layout: fixed;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 14px 20px;
  text-align: left;
  line-height: 1.8;
  vertical-align: top;
}

.legal-table th {
  width: 220px;
  background: var(--bg-light, #f8f8f8);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.legal-table td {
  word-break: break-all;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .legal-table th {
    width: auto;
    white-space: normal;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .legal-table tr {
    display: block;
    margin-bottom: 8px;
  }

  .legal-table th {
    border-bottom: none;
  }
}
