/* ============================================================
   FLEETPRO MOBILITY & HAULAGE LIMITED
   Legal Pages
   Used by: Terms of Service + Privacy Policy
   ============================================================ */

.page-legal {
  background: var(--color-grey-50, #f7f9fc);
  color: var(--color-navy-900, #0a1628);
}

/* ============================================================
   LEGAL HERO
   ============================================================ */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 88px;
  background:
    radial-gradient(
      circle at 84% 22%,
      rgba(68, 120, 196, 0.28),
      transparent 35%
    ),
    linear-gradient(
      115deg,
      #0a1628 0%,
      #132844 57%,
      #2d4669 100%
    );
  color: #fff;
}

.legal-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -245px;
  right: -95px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -330px;
  bottom: -470px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
}

.legal-hero .eyebrow {
  color: #8ab7ff;
}

.legal-title {
  max-width: 850px;
  margin: 0 0 20px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.legal-subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.8;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 9px 15px;
  color: #e8f0fb;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
}

.legal-updated i {
  color: #81aff8;
}


/* ============================================================
   MAIN LEGAL AREA
   ============================================================ */

.legal-main {
  padding: 64px 0 100px;
  background:
    linear-gradient(180deg, #f2f6fb 0, #f8fafc 300px, #f8fafc 100%);
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}


/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.legal-toc {
  position: sticky;
  top: 110px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(10,22,40,.06);
}

.legal-toc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #0a1628;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-toc-title i {
  color: var(--color-blue-500, #2864c7);
}

.legal-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc-list li + li {
  margin-top: 2px;
}

.legal-toc-list a {
  display: block;
  padding: 7px 10px;
  color: #65758a;
  border-radius: 7px;
  font-size: .82rem;
  line-height: 1.42;
  transition:
    color .2s ease,
    background-color .2s ease,
    transform .2s ease;
}

.legal-toc-list a:hover {
  color: var(--color-blue-500, #2864c7);
  background: #edf4ff;
  text-decoration: none;
  transform: translateX(2px);
}


/* ============================================================
   LEGAL DOCUMENT
   ============================================================ */

.legal-document {
  min-width: 0;
  padding: clamp(30px, 5vw, 60px);
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 16px;
  box-shadow: 0 14px 48px rgba(10,22,40,.065);
}

.legal-introduction {
  padding-bottom: 38px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e6ecf3;
}

.legal-introduction p,
.legal-section p,
.legal-section li {
  color: #526278;
  font-size: .98rem;
  line-height: 1.84;
}

.legal-introduction p:last-child,
.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section {
  padding: 40px 0;
  scroll-margin-top: 120px;
}

.legal-section + .legal-section {
  border-top: 1px solid #e6ecf3;
}

.legal-section:last-child {
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #0a1628;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.legal-section h3 {
  margin: 28px 0 12px;
  color: #172943;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-section ul {
  margin: 18px 0 22px;
  padding-left: 24px;
}

.legal-section li {
  padding-left: 5px;
  margin-bottom: 10px;
}

.legal-section li::marker {
  color: var(--color-blue-500, #2864c7);
}

.legal-section strong {
  color: #263a54;
}


/* ============================================================
   CALLOUTS
   ============================================================ */

.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 22px 0;
  padding: 18px 20px;
  color: #3e5876;
  background: #edf5ff;
  border-left: 4px solid var(--color-blue-500, #2864c7);
  border-radius: 8px;
  line-height: 1.7;
}

.legal-note i {
  margin-top: 5px;
  color: var(--color-blue-500, #2864c7);
  flex: 0 0 auto;
}


/* Development-only notice */
.legal-draft-warning {
  margin: 22px 0;
  padding: 18px 20px;
  color: #69500d;
  background: #fff8e3;
  border: 1px solid #eed27c;
  border-left: 4px solid #dba91d;
  border-radius: 8px;
  line-height: 1.7;
}

.legal-draft-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #5b4304;
}


/* ============================================================
   CONTACT CARD
   ============================================================ */

.legal-contact-card {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #0b1b31, #183252);
  border-radius: 13px;
  color: #d5dfec;
}

.legal-contact-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  top: -95px;
  background: rgba(55,112,198,.18);
  border-radius: 50%;
}

.legal-contact-name {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  margin: 0;
  font-style: normal;
}

.legal-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legal-contact-row i {
  width: 18px;
  margin-top: 5px;
  color: #78a9f7;
  text-align: center;
}

.legal-contact-row a {
  color: #dbe8fb;
}

.legal-contact-row a:hover {
  color: #fff;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .legal-hero {
    padding: 68px 0 65px;
  }

  .legal-main {
    padding: 38px 0 70px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px 10px;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    padding: 52px 0 54px;
  }

  .legal-title {
    font-size: 2.45rem;
  }

  .legal-layout {
    gap: 18px;
  }

  .legal-toc {
    padding: 20px 16px;
  }

  .legal-toc-list {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 27px 20px;
    border-radius: 12px;
  }

  .legal-section {
    padding: 31px 0;
  }

  .legal-contact-card {
    padding: 22px 18px;
  }
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .site-header,
  .nav-overlay,
  .nav-mobile,
  .legal-toc,
  .site-footer,
  .whatsapp-float,
  .back-to-top,
  .scroll-progress {
    display: none !important;
  }

  .legal-hero {
    padding: 20px 0;
    color: #000;
    background: #fff;
  }

  .legal-title,
  .legal-subtitle {
    color: #000;
  }

  .legal-main {
    padding: 0;
    background: #fff;
  }

  .legal-layout {
    display: block;
  }

  .legal-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}