/* ============================================
   BILAL MOBILES – Privacy Policy Stylesheet
   Color Palette derived from logo:
   - Deep Navy:    #0B2E6F
   - Medium Blue:  #1E66D6
   - Bright Blue:  #2E86FF
   - Light Blue:   #57A6FF
   - Orange:       #FF8A00
   - Dark Text:    #1A1A1A
   - Gray Text:    #5A5A5A
   - Light BG:     #F4F7FC
   - White:        #FFFFFF
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F4F7FC;
  color: #1A1A1A;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === HEADER === */
.site-header {
  background: linear-gradient(135deg, #0B2E6F 0%, #1E66D6 60%, #2E86FF 100%);
  padding: 48px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 48px;
  background: #F4F7FC;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.header-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  margin-bottom: 20px;
  background: #fff;
  padding: 4px;
}

.header-app-name {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-app-name span {
  color: #FFB347;
}

.header-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* === EFFECTIVE DATE BADGE === */
.effective-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #E0E8F5;
  border-radius: 50px;
  padding: 10px 24px;
  margin: -20px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(11,46,111,0.08);
  font-size: 0.88rem;
  font-weight: 500;
  color: #1E66D6;
}

.effective-date-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.effective-date-wrapper {
  text-align: center;
  padding-top: 36px;
}

/* === MAIN CONTENT === */
.policy-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* === SECTION CARD === */
.policy-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(11,46,111,0.05);
  border: 1px solid #E8EEF6;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.policy-section:hover {
  box-shadow: 0 6px 24px rgba(11,46,111,0.09);
  transform: translateY(-1px);
}

/* === SECTION NUMBER + HEADING === */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E66D6, #2E86FF);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(30,102,214,0.25);
}

.section-heading {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0B2E6F;
  line-height: 1.3;
}

/* === SECTION BODY TEXT === */
.section-body p {
  color: #3A3A3A;
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* === LISTS === */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 6px;
}

.policy-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #3A3A3A;
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A00, #FFB347);
  box-shadow: 0 1px 4px rgba(255,138,0,0.3);
}

/* === HIGHLIGHT / CALLOUT === */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F0F6FF;
  border-left: 4px solid #2E86FF;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 16px 0 8px;
  font-size: 0.93rem;
  color: #0B2E6F;
  line-height: 1.65;
}

.callout.warning {
  background: #FFF8EE;
  border-left-color: #FF8A00;
  color: #7A4A00;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* === CONTACT LINK === */
.contact-email {
  color: #1E66D6;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
  color: #0B2E6F;
  border-bottom-color: #FF8A00;
}

/* === DIVIDER === */
.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #FF8A00, #FFB347);
  border-radius: 3px;
  margin: 0 auto 24px;
  border: none;
}

/* === FOOTER === */
.site-footer {
  background: linear-gradient(135deg, #0B2E6F 0%, #1E66D6 100%);
  text-align: center;
  padding: 36px 24px 32px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 40px;
  background: #F4F7FC;
  clip-path: ellipse(55% 100% at 50% 0%);
}

.footer-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-email {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.footer-email a {
  color: #FFB347;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email a:hover {
  color: #ffffff;
}

.footer-divider {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 2px;
  margin: 0 auto 14px;
}

.footer-updated {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #1E66D6, #2E86FF);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(30,102,214,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #0B2E6F, #1E66D6);
  box-shadow: 0 6px 24px rgba(11,46,111,0.4);
}

.back-to-top:active {
  transform: scale(0.94);
}

/* === ANIMATIONS === */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-header {
    padding: 36px 20px 44px;
  }

  .header-logo {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  .header-app-name {
    font-size: 1.35rem;
  }

  .header-title {
    font-size: 0.92rem;
    letter-spacing: 0.8px;
  }

  .policy-content {
    padding: 24px 16px 48px;
  }

  .policy-section {
    padding: 24px 22px 22px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .section-heading {
    font-size: 1.1rem;
  }

  .section-number {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .effective-date-badge {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 28px 16px 38px;
  }

  .header-logo {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  .header-app-name {
    font-size: 1.18rem;
  }

  .policy-section {
    padding: 20px 18px 18px;
  }

  .section-header {
    gap: 10px;
  }

  .section-heading {
    font-size: 1.02rem;
  }

  .section-body p,
  .policy-list li {
    font-size: 0.92rem;
  }
}
