/* ============================================================
   DIGITIZ — LEGAL & STATUTORY COMPLIANCE SERVICES STYLES
   Color Palette: #b70040 (Brand Crimson), #ed563b (Accent Coral),
                  #0f172a / #1e293b (Dark Slate), #f8fafc (Light Surface)
   ============================================================ */

/* ── Container & Global Section Styling ── */
.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px;
}

.legal-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b70040;
  margin-bottom: 12px;
  display: inline-block;
}

.legal-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.28;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.legal-subtitle {
  font-size: 16.5px;
  color: #475569;
  line-height: 1.75;
  margin: 0 auto;
}

/* ── 1. Overview (H1 Hero Intro Section) ── */
.legal-intro-section {
  padding: 70px 0;
  background: #ffffff;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.legal-intro-inner {
  max-width: 900px;
  margin: 0 auto;
}

.legal-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(183, 0, 64, 0.08);
  border: 1px solid rgba(183, 0, 64, 0.2);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #b70040;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}

.legal-intro-title {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.legal-intro-lead {
  font-size: 18.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 20px;
}

.legal-intro-desc {
  font-size: 15.5px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 28px;
}

.legal-intro-philosophy {
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(183, 0, 64, 0.08) 0%, rgba(237, 86, 59, 0.08) 100%);
  border: 1px solid rgba(183, 0, 64, 0.25);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #b70040;
  letter-spacing: 0.3px;
  margin-bottom: 34px;
}

.legal-intro-philosophy i {
  color: #ed563b;
  font-size: 18px;
}

.legal-intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155 !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.legal-btn-outline:hover {
  border-color: #b70040;
  color: #b70040 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.legal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px rgba(183, 0, 64, 0.35);
}

.legal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(183, 0, 64, 0.45);
  color: #ffffff !important;
}

/* ── 2. Section 2 — Foundations / Process Organization ── */
.legal-foundations-section {
  padding: 70px 0;
  background: #ffffff;
}

.legal-foundations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 45px;
}

.legal-foundation-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 34px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.legal-foundation-card:hover {
  background: #ffffff;
  border-color: #b70040;
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(183, 0, 64, 0.09);
}

.legal-foundation-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(183, 0, 64, 0.1) 0%, rgba(237, 86, 59, 0.12) 100%);
  border: 1px solid rgba(183, 0, 64, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b70040;
  font-size: 22px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.legal-foundation-card:hover .legal-foundation-icon {
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.06);
}

.legal-foundation-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.legal-foundation-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.legal-quote-banner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 26px 36px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid #b70040;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.legal-quote-banner p {
  font-size: 17px;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-quote-banner strong {
  font-size: 20px;
  color: #b70040;
  display: block;
  font-weight: 800;
}

/* ── 3. Section 3 — Capabilities / Scope Grid (6 Cards Full Fill) ── */
.legal-capabilities-section {
  padding: 70px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.legal-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.legal-cap-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  height: 100%;
}

.legal-cap-card:hover {
  transform: translateY(-6px);
  border-color: #b70040;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.legal-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.legal-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.legal-cap-card:hover .legal-card-media img {
  transform: scale(1.05);
}

.legal-media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-media-badge i {
  color: #ed563b;
}

.legal-card-body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.legal-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.legal-cap-lead {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
}

.legal-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  margin-top: auto;
}

.legal-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e2e8f0;
}

.legal-pill i {
  color: #b70040;
  font-size: 10px;
}

.legal-disclaimer-note {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.legal-disclaimer-note i {
  color: #b70040;
  margin-right: 6px;
}

/* ── 4. Section 4 — Workflow / Process (5 Steps) ── */
.legal-process-section {
  padding: 70px 0;
  background: #ffffff;
}

.legal-process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}

.legal-process-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.legal-process-card:hover {
  background: #ffffff;
  border-color: #b70040;
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(183, 0, 64, 0.09);
}

.legal-process-step-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
}

.legal-process-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(183, 0, 64, 0.08) 0%, rgba(237, 86, 59, 0.12) 100%);
  border: 1px solid rgba(183, 0, 64, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b70040;
  font-size: 19px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.legal-process-card:hover .legal-process-icon {
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.1);
}

.legal-process-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.legal-process-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.legal-pipeline-flow {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 32px;
  text-align: center;
}

.legal-pipeline-flow h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}

.legal-pipeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-pipeline-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.legal-pipeline-node i {
  color: #b70040;
}

.legal-pipeline-arrow {
  color: #94a3b8;
  font-size: 13px;
}

/* ── 5. Section 5 — Built Around Your Business (4 Cards Full Fill) ── */
.legal-why-section {
  padding: 70px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.legal-why-highlight {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #b70040;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.legal-why-highlight h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.legal-why-highlight p {
  font-size: 16px;
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

.legal-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.legal-why-card {
  background-color: #ffffff;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.85) 100%), var(--legal-why-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 24px 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.legal-why-card:hover {
  border-color: rgba(183, 0, 64, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(183, 0, 64, 0.16);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.48) 50%, rgba(255, 255, 255, 0.70) 100%), var(--legal-why-bg, none);
}

.legal-why-icon {
  width: 48px;
  height: 48px;
  background: rgba(183, 0, 64, 0.12);
  border: 1px solid rgba(183, 0, 64, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b70040;
  font-size: 20px;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.legal-why-card:hover .legal-why-icon {
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08);
}

.legal-why-card:hover .legal-why-icon i,
.legal-why-card:hover .legal-why-icon svg {
  color: #ffffff;
  fill: #ffffff;
}

.legal-why-card h4 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.legal-why-subheading {
  font-size: 13px;
  font-weight: 700;
  color: #b70040;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-why-card p {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
  transition: color 0.3s ease;
}

.legal-why-difference-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 18px;
  padding: 34px 38px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

.legal-why-difference-banner h4 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.legal-why-difference-banner p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 12px;
  line-height: 1.65;
}

.legal-why-difference-banner strong {
  font-size: 17px;
  color: #ed563b;
  font-weight: 700;
}

/* ── 6. Section 7 — Call to Action & Form ── */
.legal-cta-section {
  padding: 70px 0;
  background: #ffffff;
  text-align: center;
}

.legal-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.legal-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(183, 0, 64, 0.08);
  border: 1px solid rgba(183, 0, 64, 0.2);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #b70040;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}

.legal-cta-title {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.legal-cta-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 30px;
}

.legal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b70040 0%, #ed563b 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(183, 0, 64, 0.4);
}

.legal-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(183, 0, 64, 0.55);
  color: #ffffff !important;
}

.legal-footer-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

/* ── 7. Tablet Responsive Breakpoints (768px - 1024px) ── */
@media (max-width: 1024px) {
  .legal-container {
    padding: 0 20px;
  }

  .legal-capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .legal-process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .legal-foundations-grid,
  .legal-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .legal-intro-title {
    font-size: 36px;
  }

  .legal-title {
    font-size: 30px;
  }
}

/* ── 8. Mobile Responsive Breakpoints (< 768px & < 480px) ── */
@media (max-width: 768px) {
  .legal-intro-section,
  .legal-foundations-section,
  .legal-capabilities-section,
  .legal-process-section,
  .legal-why-section,
  .legal-cta-section {
    padding: 65px 0 55px;
  }

  .legal-intro-title,
  .legal-cta-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .legal-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .legal-intro-lead {
    font-size: 16.5px;
  }

  .legal-intro-desc,
  .legal-subtitle,
  .legal-cta-desc {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .legal-intro-philosophy {
    padding: 12px 18px;
    font-size: 14px;
    flex-direction: column;
    text-align: center;
  }

  .legal-foundations-grid,
  .legal-capabilities-grid,
  .legal-process-grid,
  .legal-why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-foundation-card,
  .legal-cap-card,
  .legal-process-card,
  .legal-why-card {
    padding: 24px 20px;
  }

  .legal-card-media {
    height: 180px;
  }

  .legal-card-body {
    padding: 20px 16px;
  }

  .legal-quote-banner,
  .legal-why-highlight,
  .legal-why-difference-banner {
    padding: 20px 18px;
  }

  .legal-quote-banner p,
  .legal-why-highlight p,
  .legal-why-difference-banner p {
    font-size: 14.5px;
  }

  .legal-quote-banner strong,
  .legal-why-difference-banner strong {
    font-size: 16px;
  }

  .legal-pipeline-flow {
    padding: 18px 14px;
  }

  .legal-pipeline-track {
    flex-direction: column;
    gap: 8px;
  }

  .legal-pipeline-node {
    width: 100%;
    justify-content: center;
  }

  .legal-pipeline-arrow {
    transform: rotate(90deg);
  }

  .legal-intro-actions {
    flex-direction: column;
    width: 100%;
  }

  .legal-btn-outline,
  .legal-btn-primary,
  .legal-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
