/* static/assets/css/terms.css */
/* ==========================================================================
   DriveEase Dubai — Terms of Service Page Styles
   Layout inspired by RCT.ae with DriveEase Dubai Brand Colors & Typography
   ========================================================================== */

/* Page Container & Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

.terms-page {
  background-color: #F8F9FA;
  color: #1F2937;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Hero Banner Section
   -------------------------------------------------------------------------- */
.terms-hero-section {
  position: relative;
  background: linear-gradient(135deg, #001233 0%, #001F5F 50%, #022b7a 100%);
  padding: 140px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(248, 205, 0, 0.15);
}

.terms-hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 205, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.terms-hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 205, 0, 0.4), transparent);
}

.terms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  background: rgba(248, 205, 0, 0.12);
  border: 1px solid rgba(248, 205, 0, 0.35);
  border-radius: 50px;
  color: #F8CD00;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.terms-eyebrow-icon {
  width: 15px;
  height: 15px;
  stroke: #F8CD00;
  flex-shrink: 0;
}

.terms-hero-title {
  font-family: "Poppins", "DM Sans", sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.terms-hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.terms-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.terms-breadcrumb a:hover {
  color: #F8CD00;
}

.terms-breadcrumb-separator {
  color: rgba(248, 205, 0, 0.5);
  font-size: 12px;
}

.terms-breadcrumb-current {
  color: #F8CD00;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Main Content Layout (Two Column: Sidebar + Cards)
   -------------------------------------------------------------------------- */
.terms-body-section {
  padding: 70px 0 90px;
  position: relative;
}

/* Sticky Navigation Sidebar */
.terms-sidebar-wrapper {
  position: sticky;
  top: 86px;
  z-index: 10;
}

.terms-sidebar-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E5E7EB;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 31, 95, 0.04);
  margin-bottom: 24px;
}

.terms-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F4F6;
}

.terms-sidebar-header-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(248, 205, 0, 0.15);
  color: #001F5F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.terms-sidebar-title {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #001F5F;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.terms-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terms-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.35;
}

.terms-nav-item a .nav-index {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  width: 22px;
  transition: color 0.25s ease;
}

.terms-nav-item a:hover {
  background: rgba(0, 31, 95, 0.04);
  color: #001F5F;
  transform: translateX(4px);
}

.terms-nav-item a:hover .nav-index {
  color: #001F5F;
}

.terms-nav-item.active a {
  background: #001F5F;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 31, 95, 0.15);
}

.terms-nav-item.active a .nav-index {
  color: #F8CD00;
}

/* Sidebar Operations Desk Widget */
.terms-support-box {
  background: linear-gradient(135deg, #001F5F 0%, #001233 100%);
  border-radius: 18px;
  padding: 24px;
  color: #FFFFFF;
  border: 1px solid rgba(248, 205, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 31, 95, 0.1);
}

.terms-support-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.terms-support-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 18px;
}

.terms-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #F8CD00;
  color: #001F5F;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 10px;
}

.terms-support-btn:hover {
  background: #FFE033;
  color: #001438;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(248, 205, 0, 0.3);
}

.terms-support-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.terms-support-btn-outline:hover {
  border-color: #F8CD00;
  color: #F8CD00;
  background: rgba(248, 205, 0, 0.05);
}

/* --------------------------------------------------------------------------
   Terms Content Cards (Right Column)
   -------------------------------------------------------------------------- */
.terms-content-stream {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.terms-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  padding: 36px 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  scroll-margin-top: 140px; /* Essential for sticky header clearance */
}

.terms-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 40px rgba(0, 31, 95, 0.04);
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F3F4F6;
}

.terms-card-badge {
  font-family: "Poppins", monospace;
  font-size: 14px;
  font-weight: 800;
  color: #001F5F;
  background: rgba(248, 205, 0, 0.2);
  border: 1px solid rgba(248, 205, 0, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.terms-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #001F5F;
  margin: 0;
  line-height: 1.3;
}

.terms-card p {
  color: #374151;
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.terms-card p:last-child {
  margin-bottom: 0;
}

/* Callout Highlights */
.terms-callout {
  border-radius: 14px;
  padding: 20px 24px;
  margin: 22px 0;
  background: #F0F5FF;
  border-left: 4px solid #001F5F;
}

.terms-callout-gold {
  background: #FFFDF0;
  border-left: 4px solid #F8CD00;
}

.terms-callout-alert {
  background: #FFF5F5;
  border-left: 4px solid #DC2626;
}

.terms-callout-title {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #001F5F;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-callout-alert .terms-callout-title {
  color: #991B1B;
}

.terms-callout-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 31, 95, 0.08);
  color: #001F5F;
  flex-shrink: 0;
}

.terms-callout-gold .terms-callout-icon-box {
  background: rgba(248, 205, 0, 0.22);
  color: #92400E;
}

.terms-callout-alert .terms-callout-icon-box {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
}

.terms-callout-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.terms-callout p {
  font-size: 14.5px;
  color: #4B5563;
  margin-bottom: 0;
  line-height: 1.65;
}

/* Feature/Bullet Lists inside Cards */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #001F5F;
  border: 2px solid #F8CD00;
}

/* Step / Numbered Process Boxes (e.g. Payment Gateway disclosure) */
.terms-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.terms-step-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s ease;
}

.terms-step-box:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.terms-step-num {
  font-family: "Poppins", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #001F5F;
  background: rgba(0, 31, 95, 0.08);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.terms-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.terms-step-desc {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   Corporate Operations Desk Bottom CTA Banner
   -------------------------------------------------------------------------- */
.terms-bottom-banner {
  background: linear-gradient(135deg, #001233 0%, #001F5F 60%, #022b7a 100%);
  padding: 70px 0;
  position: relative;
  border-top: 1px solid rgba(248, 205, 0, 0.2);
  color: #FFFFFF;
}

.terms-bottom-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F8CD00, transparent);
}

.terms-bottom-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.terms-bottom-title {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.terms-bottom-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

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

.terms-btn-gold {
  padding: 14px 32px;
  background: #F8CD00;
  color: #001F5F;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(248, 205, 0, 0.25);
}

.terms-btn-gold:hover {
  background: #FFE033;
  color: #001438;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(248, 205, 0, 0.4);
}

.terms-btn-white-outline {
  padding: 13px 30px;
  background: transparent;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.terms-btn-white-outline:hover {
  border-color: #F8CD00;
  color: #F8CD00;
  background: rgba(248, 205, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .terms-hero-section {
    padding: 120px 0 60px;
  }
  .terms-hero-title {
    font-size: 36px;
  }
  .terms-sidebar-wrapper {
    position: static;
    margin-bottom: 30px;
  }
  .terms-card {
    padding: 28px 24px;
  }
  .terms-bottom-title {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .terms-hero-title {
    font-size: 28px;
  }
  .terms-hero-subtitle {
    font-size: 15px;
  }
  .terms-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .terms-card-title {
    font-size: 19px;
  }
  .terms-steps-grid {
    grid-template-columns: 1fr;
  }
  .terms-bottom-actions {
    flex-direction: column;
    width: 100%;
  }
  .terms-btn-gold,
  .terms-btn-white-outline {
    width: 100%;
    justify-content: center;
  }
}

