/* LEGAL PAGES — Terms & Conditions / Disclaimer */

.legal-hero .hero-content { max-width: 720px; }

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  margin: -16px 0 0;
}
.legal-updated [data-lucide] { width: 14px; height: 14px; stroke-width: 2; }

/* Content */
.legal-content {
  background: var(--bg);
  padding: var(--space-section) var(--site-pad-x);
}
.legal-content-inner {
  max-width: 840px;
  margin: 0 auto;
}

.legal-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--clr-divider);
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child { border-bottom: none; padding-bottom: 0; }

.legal-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.legal-section-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
}
.legal-section-icon svg { width: 22px; height: 22px; stroke: var(--primary); stroke-width: 2; }

.legal-section h2 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg-primary);
  letter-spacing: -0.3px;
  margin: 0;
}

.legal-section p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--fg-body);
  margin: 0 0 16px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-section ul:last-child { margin-bottom: 0; }
.legal-section ul li {
  position: relative;
  padding-left: 28px;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--fg-body);
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.55;
  transform: rotate(45deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .legal-section { padding: 32px 0; }
  .legal-section h2 { font-size: 20px; }
  .legal-section-icon { width: 40px; height: 40px; border-radius: 10px; }
  .legal-section-icon svg { width: 20px; height: 20px; }
  .legal-section p,
  .legal-section ul li { font-size: 14.5px; }
}

@media (max-width: 599px) {
  .legal-section { padding: 26px 0; }
  .legal-section-head { gap: 12px; margin-bottom: 14px; }
  .legal-section-icon { width: 36px; height: 36px; border-radius: 9px; }
  .legal-section-icon svg { width: 18px; height: 18px; }
}

/* CERTIFICATION GRID — certifications.php */
.cert-page-inner { max-width: var(--site-max-w, 1440px); }

.legal-section .cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.cert-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover {
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.08);
  border-color: rgba(var(--accent-rgb), 0.30);
  z-index: 2;
}
.cert-card-icon {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
}
.cert-card-icon svg { width: 28px; height: 28px; stroke: var(--primary); stroke-width: 2; }
.cert-card-icon img { width: 46px; height: 46px; object-fit: contain; }
.cert-card h3 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-primary);
  letter-spacing: -0.2px;
  margin: 0;
}
.cert-card p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin: 0;
}

.cert-card-images {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cert-card-image-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.cert-card-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cert-card-image-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 15, 30, 0.12);
  border-color: rgba(var(--accent-rgb), 0.30);
}
.cert-card-image-label {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
}
@media (max-width: 599px) {
  .cert-card-images { gap: 8px; }
}

@media (max-width: 1200px) {
  .legal-section .cert-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .legal-section .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .legal-section .cert-grid { grid-template-columns: 1fr; gap: 14px; }
  .cert-card { padding: 18px; }
}
