/* ============================================================
   DELRIQUE INFOTECH — LEGAL PAGES
   LEGAL-ONLY CSS — ISOLATED
   ============================================================ */

/*
 * LEGAL PAGES ONLY — LEGAL-ONLY CSS
 *
 * This stylesheet may duplicate selected shared presentation
 * rules intentionally so the Legal pages can evolve independently.
 * DO NOT use this file as a global stylesheet.
 *
 * Ownership: LEGAL ONLY
 * SAFE: Other pages never load this file (includes/header.php
 * conditional $isLegal). All selectors are scoped to
 * .page-legal to prevent leakage even if load order changes.
 * Brand palette strict: #0B1220, #1546A0, #FFC300, #FFFFFF
 * RGBA derivatives permitted, no other hues.
 */

/* ============================================================
   01. Legal-local foundation — scoped, no global side effects
   ============================================================ */

.page-legal {
  background: #0B1220;
  color: #FFFFFF;
}

/* ============================================================
   02. Container & section rhythm — copy from services.css:7-20
   Intentionally duplicated so legal owns its gutters/rhythm.
   ============================================================ */

.page-legal .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.page-legal .section {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}

.page-legal .section-dark {
  background: #0B1220;
}

.page-legal .section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================
   03. Breadcrumb — legal-local copy of services.css:744-777
   ============================================================ */

.page-legal .breadcrumb {
  margin-bottom: 18px;
}
.page-legal .breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.page-legal .breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.page-legal .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-legal .breadcrumb a:hover {
  color: #FFC300;
}
.page-legal .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}
.page-legal .breadcrumb-sep {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   04. Solution hero — legal-local copy of services.css:51-140
   ============================================================ */

.page-legal .solution-hero {
  padding: clamp(100px, 12vw, 140px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  background: #0B1220;
  overflow: hidden;
}
.page-legal .solution-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(21, 70, 160, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 78%, rgba(255, 195, 0, 0.05) 0%, transparent 55%);
  pointer-events: none;
}
.page-legal .solution-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 70, 160, 0.35), rgba(255, 195, 0, 0.35), transparent);
  pointer-events: none;
  z-index: 1;
}
.page-legal .solution-hero .container {
  position: relative;
  z-index: 1;
}
.page-legal .solution-hero__content {
  max-width: 680px;
}
.page-legal .solution-hero .section-label {
  color: #FFC300;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.page-legal .solution-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.08;
  margin: 0 0 16px;
}
.page-legal .solution-hero__desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 620px;
  margin: 0;
}

/* ============================================================
   05. Service overview — legal body text, constrained column
   ============================================================ */

.page-legal .service-overview {
  max-width: 820px;
  margin: 0 auto;
}
.page-legal .service-overview__text h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.85rem;
}
.page-legal .service-overview__text h2:first-child {
  margin-top: 0;
}
.page-legal .service-overview__text p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.page-legal .service-overview__text p:last-child {
  margin-bottom: 0;
}
.page-legal .service-overview__text strong {
  color: #FFFFFF;
  font-weight: 700;
}
.page-legal .service-overview__text a {
  color: #FFC300;
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-legal .service-overview__text a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ============================================================
   06. Legal index card grid — pillars grid + card
   copy of home.css:298-372 + BEM additions, scoped
   ============================================================ */

.page-legal .pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.page-legal .pillar-card {
  display: block;
  padding: 32px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.page-legal .pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1546A0, #FFC300);
  opacity: 0;
  transition: opacity 0.35s;
}
.page-legal .pillar-card:hover {
  border-color: rgba(21, 70, 160, 0.3);
  transform: translateY(-3px);
}
.page-legal .pillar-card:hover::before {
  opacity: 1;
}
.page-legal .pillar-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.page-legal .pillar-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0;
}
.page-legal .pillar-card__desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0 0 20px;
}
.page-legal .pillar-card__meta {
  display: flex;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}
.page-legal .pillar-card:hover .pillar-card__meta {
  transform: translateX(4px);
}
.page-legal .pillar-card__meta .arrow {
  color: #1546A0;
  transition: color 0.3s ease;
}
.page-legal .pillar-card:hover .pillar-card__meta .arrow {
  color: #FFC300;
}

/* ============================================================
   07. CTA — legal-local copy of services.css:354-392
   ============================================================ */

.page-legal .cta-section {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(21, 70, 160, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.page-legal .cta-section .section-header {
  margin-bottom: 2rem;
}
.page-legal .cta-section .section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.page-legal .cta-section .section-header p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-legal .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.page-legal .cta-buttons .btn {
  min-height: 44px;
}

/* ============================================================
   08. Responsive
   ============================================================ */

@media (max-width: 768px) {
  .page-legal .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-legal .service-overview {
    max-width: 100%;
  }
  .page-legal .solution-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
  .page-legal .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .page-legal .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
