/* ============================================================
   Car Wash Queen LLC – Privacy Policy Stylesheet
   Color Palette (extracted from logo):
   - Deep Navy:      #07163B
   - Royal Blue:     #0E3E9A / #1157B8
   - Gold Accent:    #D8B24A / #C79A2E / #F0D37A
   - Cyan/Aqua:      #2DA9F7 / #58C7FF
   - White:          #FFFFFF / #F7F8FB
   - Light BG:       #F4F7FF
   - Text Dark:      #1A2340
   - Text Muted:     #5A6A8A
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f7ff;
  color: #1A2340;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, #07163B 0%, #0E3E9A 55%, #1157B8 100%);
  padding: 48px 24px 0;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45,169,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(216,178,74,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 36px;
  position: relative;
  z-index: 1;
}

.header-logo-wrap {
  flex-shrink: 0;
}

.header-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 2px rgba(216,178,74,0.5);
  display: block;
  background: #0E3E9A;
}

/* Fallback broken-image styling */
.header-logo[src="./assets/logo.png"]:not([complete]),
.header-logo:-moz-broken {
  background: linear-gradient(135deg, #07163B, #1157B8);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: #D8B24A;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-wave {
  line-height: 0;
  position: relative;
  z-index: 1;
}

.header-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ============================================================
   MAIN
   ============================================================ */
.policy-main {
  background-color: #f4f7ff;
  padding: 0 16px 80px;
}

.policy-container {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 12px;
}

/* ============================================================
   INTRO CARD
   ============================================================ */
.policy-intro-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 12px;
  box-shadow: 0 4px 24px rgba(7,22,59,0.08);
  border-top: 4px solid #D8B24A;
  position: relative;
  overflow: hidden;
}

.policy-intro-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(45,169,247,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.intro-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0E3E9A, #1157B8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(14,62,154,0.3);
}

.intro-icon i {
  color: #ffffff;
  font-size: 1.3rem;
}

.intro-text {
  font-size: 0.97rem;
  color: #3A4A6A;
  line-height: 1.8;
  margin-bottom: 14px;
}

.intro-text:last-of-type {
  margin-bottom: 24px;
}

.effective-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #07163B, #0E3E9A);
  color: #F0D37A;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
}

.effective-date i {
  font-size: 0.85rem;
}

.effective-date strong {
  color: #ffffff;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(14,62,154,0.12), transparent);
  margin: 8px 0;
}

/* ============================================================
   POLICY SECTIONS
   ============================================================ */
.policy-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(7,22,59,0.06);
  transition: box-shadow 0.25s ease;
}

.policy-section:hover {
  box-shadow: 0 6px 28px rgba(7,22,59,0.1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f0f3fb;
}

.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #D8B24A;
  line-height: 1;
  min-width: 36px;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #07163B;
  line-height: 1.3;
}

.section-body p {
  font-size: 0.97rem;
  color: #3A4A6A;
  line-height: 1.85;
  margin-bottom: 16px;
}

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

/* ============================================================
   POLICY LIST
   ============================================================ */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: #3A4A6A;
  line-height: 1.65;
  padding: 10px 16px;
  background: #f8faff;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.policy-list li:hover {
  border-left-color: #2DA9F7;
  background: #f0f6ff;
}

.policy-list li i {
  color: #2DA9F7;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ============================================================
   INFO NOTE
   ============================================================ */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #eef4ff, #e8f2fe);
  border: 1px solid rgba(14,62,154,0.12);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

.info-note i {
  color: #1157B8;
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-note p {
  font-size: 0.9rem !important;
  color: #2A3A5A !important;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}

/* ============================================================
   WARNING NOTE
   ============================================================ */
.warning-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fffbec, #fff8e1);
  border: 1px solid rgba(216,178,74,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

.warning-note i {
  color: #C79A2E;
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.warning-note p {
  font-size: 0.9rem !important;
  color: #4A3A10 !important;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  border-top: 4px solid #0E3E9A;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.contact-card {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(14,62,154,0.1);
  box-shadow: 0 2px 10px rgba(7,22,59,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.contact-item:hover {
  box-shadow: 0 4px 16px rgba(7,22,59,0.1);
  border-color: rgba(45,169,247,0.3);
}

.contact-item i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0E3E9A, #1157B8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-item span,
.contact-item a {
  font-size: 0.97rem;
  color: #1A2340;
  font-weight: 500;
  text-decoration: none;
}

.contact-item a:hover {
  color: #1157B8;
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, #07163B 0%, #0A1E55 100%);
  padding: 48px 24px 32px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #D8B24A, #F0D37A, #D8B24A);
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(45,169,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo-wrap {
  margin-bottom: 4px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3), 0 0 0 2px rgba(216,178,74,0.4);
  background: #0E3E9A;
}

.footer-company {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F0D37A;
  letter-spacing: 0.02em;
}

.footer-email {
  font-size: 0.875rem;
  color: #8aaddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-email i {
  font-size: 0.8rem;
  color: #2DA9F7;
}

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

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

.footer-updated {
  font-size: 0.82rem;
  color: #6A8AB8;
}

.footer-copy {
  font-size: 0.8rem;
  color: #4A6090;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  text-align: center;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0E3E9A, #1157B8);
  color: #ffffff;
  border: 2px solid rgba(216,178,74,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(7,22,59,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}

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

.back-to-top:hover {
  background: linear-gradient(135deg, #D8B24A, #F0D37A);
  color: #07163B;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(216,178,74,0.4);
}

/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 36px 16px 0;
  }

  .header-inner {
    gap: 14px;
    padding-bottom: 28px;
  }

  .header-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .header-brand {
    font-size: 1.3rem;
  }

  .policy-intro-card,
  .policy-section {
    padding: 28px 24px;
  }

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

  .section-number {
    font-size: 1.25rem;
    min-width: 28px;
  }
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .site-header {
    padding: 28px 14px 0;
  }

  .header-inner {
    gap: 12px;
    padding-bottom: 22px;
  }

  .header-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .header-brand {
    font-size: 1.1rem;
  }

  .header-subtitle {
    font-size: 0.75rem;
  }

  .policy-main {
    padding: 0 10px 60px;
  }

  .policy-intro-card,
  .policy-section {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .section-header {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .section-number {
    font-size: 1.1rem;
    min-width: 24px;
  }

  .section-title {
    font-size: 1rem;
  }

  .policy-list li {
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .intro-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .contact-item {
    padding: 12px 14px;
  }

  .effective-date {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
