/*
 * SureSuccess - Cancellation and Refund Policy Stylesheet
 * Optimized styles for policy and legal pages
 */

/* ======================================
   BASE STYLES & VARIABLES
   ====================================== */
:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --secondary-lighter: #334155;
  
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --background: #ffffff;
  --background-alt: #f8fafc;
  --background-dark: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-headings: 'Poppins', var(--font-primary);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* ======================================
   RESET & BASE STYLES
   ====================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background-alt);
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 5rem 0;
  position: relative;
}

/* ======================================
   NAVIGATION
   ====================================== */
.navbar {
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
  transition: var(--transition);
  z-index: 100;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
}

.brand-highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--text-white);
}

.navbar-dark .navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-white);
}

.navbar-dark .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* ======================================
   POLICY HEADER SECTION
   ====================================== */
.policy-header {
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.policy-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

.policy-header-content {
  position: relative;
  z-index: 1;
}

.policy-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.policy-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.policy-header .btn-light {
  background-color: var(--text-white);
  color: var(--primary);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.policy-header .btn-light:hover {
  background-color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ======================================
   POLICY CARD STYLING
   ====================================== */
.policy-card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  background-color: var(--background);
  margin-bottom: 1.5rem;
}

.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.policy-card .card-header {
  background-color: var(--background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.policy-card .card-body {
  padding: 1.5rem;
}

/* ======================================
   POLICY CONTENT STYLING
   ====================================== */
.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h3 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.policy-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.policy-section h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.policy-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.policy-section ul, 
.policy-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.policy-section strong {
  font-weight: 600;
  color: var(--text-dark);
}

.last-updated {
  font-style: italic;
  color: var(--text-light);
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ======================================
   INFO & WARNING CARDS
   ====================================== */
.info-card {
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
}

.info-card h4 {
  display: flex;
  align-items: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-card h4 i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.info-card p,
.info-card ul,
.info-card li {
  color: var(--text-muted);
}

.warning-card {
  background-color: rgba(245, 158, 11, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--warning);
}

.warning-card h4 {
  display: flex;
  align-items: center;
  color: var(--warning);
  margin-bottom: 1rem;
  font-weight: 600;
}

.warning-card h4 i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.warning-card p,
.warning-card ul,
.warning-card li {
  color: var(--text-muted);
}

/* ======================================
   TIMELINE STYLING
   ====================================== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.75rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-lighter), var(--primary));
  border-radius: var(--border-radius-full);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: -1.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  z-index: 1;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.timeline-item p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  outline: none !important;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover, 
.btn-primary:focus {
  background: var(--primary-dark);
  color: var(--text-white);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--text-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: white;
}

/* ======================================
   FOOTER STYLING
   ====================================== */
footer {
  background-color: var(--secondary);
  color: var(--text-white);
  margin-top: 4rem;
}

footer h4, footer h5 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: white;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-lighter);
  text-decoration: none;
  padding-left: 5px;
}

/* ======================================
   ANIMATIONS
   ====================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
   ====================================== */
@media (max-width: 991.98px) {
  .policy-header {
    padding: 2rem;
  }
  
  .policy-header h2 {
    font-size: 2rem;
  }
  
  .policy-card {
    padding: 1.25rem;
  }
  
  .policy-section h3 {
    font-size: 1.35rem;
  }
  
  .policy-section h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .policy-header {
    padding: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .policy-header h2 {
    font-size: 1.75rem;
  }
  
  .policy-header p {
    font-size: 1rem;
  }
  
  .policy-section {
    margin-bottom: 2rem;
  }
  
  .policy-section h3 {
    font-size: 1.25rem;
  }
  
  .timeline {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 0.85rem;
    height: 0.85rem;
    left: -1.5rem;
  }
  
  .timeline-item h4 {
    font-size: 1rem;
  }
  
  .info-card,
  .warning-card {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .policy-header {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .policy-header h2 {
    font-size: 1.5rem;
  }
  
  .policy-header p {
    font-size: 0.95rem;
  }
  
  .policy-section h3 {
    font-size: 1.2rem;
  }
  
  .policy-section h4 {
    font-size: 1.05rem;
  }
  
  .timeline {
    padding-left: 1.75rem;
  }
  
  .timeline::before {
    left: 0.6rem;
  }
  
  .timeline-item::before {
    width: 0.75rem;
    height: 0.75rem;
    left: -1.35rem;
  }
  
  .info-card,
  .warning-card {
    padding: 1rem;
  }
  
  .info-card h4,
  .warning-card h4 {
    font-size: 1.05rem;
  }
}