/* ============================================================
   SD Academy — Legal Pages & Help Centre Styles
   ============================================================ */

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--gray-100);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 12px 0 14px;
  line-height: 1.15;
}

.legal-header p {
  font-size: 14.5px;
  color: var(--gray-500);
  margin-bottom: 6px;
  line-height: 1.55;
}

.legal-header a { color: var(--blue-600); }

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-body section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}

.legal-body p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
}

.legal-body a {
  color: var(--blue-600);
  font-weight: 500;
}
.legal-body a:hover { text-decoration: underline; }

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body li {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
}

.legal-body li strong { color: var(--gray-900); }

/* ── Data tables ─────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

.data-table thead tr {
  background: var(--navy-gradient);
}

.data-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.data-table tbody tr {
  border-top: 1px solid var(--gray-100);
  transition: background 0.2s;
}
.data-table tbody tr:hover { background: var(--gray-50); }

.data-table tbody td {
  padding: 13px 18px;
  color: var(--gray-700);
  vertical-align: top;
  line-height: 1.55;
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

/* ── Help categories ─────────────────────────────────────── */
.help-categories {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-cat {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s var(--ease-bounce);
}
.help-cat:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hcat-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.help-cat:hover .hcat-icon { background: var(--blue-600); border-color: transparent; }
.hcat-icon svg { width: 22px; height: 22px; stroke: var(--blue-600); }
.help-cat:hover .hcat-icon svg { stroke: #ffffff; }

.help-cat h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.help-cat p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
  flex: 1;
}

.hcat-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hcat-link::after { content: ' →'; }
.hcat-link:hover { text-decoration: underline; }

/* ── FAQ items ──────────────────────────────────────────── */
.faq-item-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item-block h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gray-900);
}

.faq-item-block p,
.faq-item-block ul,
.faq-item-block li {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item-block ul { padding-left: 18px; gap: 6px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-header h1 { font-size: 30px; }
  .help-categories { grid-template-columns: 1fr; }
  .legal-page { padding: 40px 20px 80px; }
}
