/* ==========================================================================
   CAPITAL.MY — Legal pages stylesheet
   Extends styles.css with typography for long-form legal content.
   Loaded alongside styles.css; uses the same CSS variables and tokens.
   ========================================================================== */

.legal-hero {
  position: relative;
  padding: 100px 32px 64px;
  background: var(--grey-bg);
  overflow: hidden;
}

.legal-hero__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 60%, var(--orange) 60%, var(--orange) 100%);
}

.legal-hero__headline {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.legal-hero__updated {
  font-size: 14px;
  color: var(--ink-soft);
}

.legal-body {
  padding: 72px 0 140px;
}

.legal-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.legal-body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  margin: 56px 0 20px;
}

.legal-body section .legal-body h2:first-of-type,
.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.legal-body ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.legal-body ul li {
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.legal-body a {
  color: var(--blue);
  font-weight: 500;
  border-bottom: 1px solid rgba(15, 92, 168, 0.3);
  transition: border-color 0.2s var(--ease);
}
.legal-body a:hover { border-color: var(--blue); }

.legal-contact {
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
  font-weight: 500;
  margin-top: 8px;
}

.legal-cross-link {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--grey-divider);
  font-size: 15px;
}

@media (max-width: 860px) {
  .legal-hero { padding: 80px 24px 48px; }
  .legal-body { padding: 56px 0 100px; }
  .legal-body h2 { font-size: 18px; margin: 44px 0 16px; }
}
