/* Policy Pages Styles */

/* Theme Variables - Change these for different color schemes */
:root {
   /* Default theme colors (can be overridden per page) */
   --primary-color: #059669;
   --primary-light: #10b981;
   --primary-lighter: #34d399;
   --primary-dark: #047857;
   --primary-darker: #065f46;

   --accent-bg: linear-gradient(135deg, #d1fae5, #a7f3d0);
   --highlight-bg: linear-gradient(135deg, #f0fdf4, #dcfce7);
   --list-icon: '📋';
   --warning-icon: '⚠️';
}

.policy-header {
   background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--primary-lighter));
   color: white;
   padding: 50px 0 50px;
   text-align: center;
   /* margin-bottom: 80px; */
   position: relative;
   overflow: hidden;
}

.policy-header::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
   opacity: 0.1;
}

.policy-header h1 {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 20px;
   text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
   position: relative;
   z-index: 2;
}

.policy-header .lead {
   font-size: 1.4rem;
   font-weight: 300;
   opacity: 0.95;
   max-width: 600px;
   margin: 0 auto;
   position: relative;
   z-index: 2;
}

.policy-content {
   padding: 80px 0;
   background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.last-updated {
   text-align: center;
   color: #64748b;
   font-style: italic;
   margin-bottom: 50px;
   font-size: 1.1rem;
   background: white;
   padding: 15px 30px;
   border-radius: 50px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   display: inline-block;
   border-left: 4px solid var(--primary-light);
}

.policy-card {
   background: white;
   border-radius: 20px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
   padding: 50px;
   margin-bottom: 40px;
   border-left: 6px solid var(--primary-light);
   position: relative;
   transition: all 0.3s ease;
}

.policy-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.policy-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
   border-radius: 20px 20px 0 0;
}

.policy-title {
   color: var(--primary-color);
   font-size: 2.2rem;
   font-weight: 800;
   margin-bottom: 30px;
   text-align: center;
   background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   position: relative;
}

.policy-title::after {
   content: '';
   position: absolute;
   bottom: -10px;
   left: 50%;
   transform: translateX(-50%);
   width: 80px;
   height: 4px;
   background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
   border-radius: 2px;
}

.policy-subtitle {
   color: var(--primary-color);
   font-size: 1.8rem;
   font-weight: 700;
   margin: 40px 0 25px;
   border-bottom: 3px solid #e5e7eb;
   padding-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 12px;
}

.policy-subtitle i {
   color: var(--primary-light);
   font-size: 1.5rem;
   background: var(--accent-bg);
   padding: 8px;
   border-radius: 50%;
   border: 2px solid var(--primary-light);
}

.policy-text {
   line-height: 1.9;
   color: #374151;
   margin-bottom: 25px;
   font-size: 1.1rem;
}

.policy-text p {
   margin-bottom: 20px;
}

.policy-text ul {
   padding-left: 30px;
   margin-bottom: 20px;
}

.policy-text li {
   margin-bottom: 12px;
   position: relative;
}

.policy-text li::before {
   content: var(--list-icon);
   position: absolute;
   left: -25px;
   top: 0;
   font-size: 1rem;
}

.policy-text strong {
   color: var(--primary-color);
   font-weight: 700;
}

.highlight-box {
   background: var(--accent-bg);
   border-left: 5px solid var(--primary-light);
   padding: 25px 30px;
   margin: 30px 0;
   border-radius: 12px;
   position: relative;
   box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.highlight-box::before {
   content: var(--warning-icon);
   position: absolute;
   top: -10px;
   left: 20px;
   background: white;
   padding: 5px;
   border-radius: 50%;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.highlight-box h4 {
   color: var(--primary-color);
   margin-bottom: 15px;
   font-size: 1.3rem;
   font-weight: 700;
}

.terms-list {
   background: var(--highlight-bg);
   border-radius: 15px;
   padding: 30px;
   margin: 25px 0;
   border-left: 4px solid var(--primary-light);
}

.terms-list ol {
   padding-left: 25px;
   margin: 0;
}

.terms-list li {
   margin-bottom: 15px;
   line-height: 1.7;
   font-size: 1.05rem;
   position: relative;
   padding-left: 10px;
}

.terms-list li::before {
   content: counter(list-item);
   position: absolute;
   left: -25px;
   top: 0;
   background: var(--primary-light);
   color: white;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.8rem;
   font-weight: bold;
}

.refund-table {
   width: 100%;
   border-collapse: collapse;
   margin: 25px 0;
   background: white;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
   border: 1px solid #e5e7eb;
}

.refund-table th {
   background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
   color: white;
   padding: 18px 20px;
   text-align: left;
   font-weight: 700;
   font-size: 1rem;
   border-bottom: 2px solid var(--primary-darker);
}

.refund-table td {
   padding: 18px 20px;
   border-bottom: 1px solid #e5e7eb;
   font-size: 1rem;
}

.refund-table tr:nth-child(even) {
   background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.refund-table tr:hover {
   background: linear-gradient(135deg, #fee2e2, #fecaca);
   transition: all 0.3s ease;
}

.process-steps {
   background: var(--highlight-bg);
   border-radius: 15px;
   padding: 35px;
   margin: 30px 0;
   border-left: 4px solid var(--primary-light);
   position: relative;
}

.process-steps::before {
   content: '🔄';
   position: absolute;
   top: -15px;
   left: 20px;
   background: white;
   padding: 8px;
   border-radius: 50%;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   font-size: 1.2rem;
}

.step {
   display: flex;
   align-items: center;
   margin-bottom: 20px;
   position: relative;
}

.step:last-child {
   margin-bottom: 0;
}

.step-number {
   background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
   color: white;
   width: 35px;
   height: 35px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   margin-right: 18px;
   flex-shrink: 0;
   box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.step-content {
   flex: 1;
}

.step-content strong {
   color: var(--primary-color);
   font-size: 1.1rem;
   display: block;
   margin-bottom: 5px;
}

.shipping-zones {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 25px;
   margin: 30px 0;
}

.zone-card {
   background: linear-gradient(135deg, #f8fafc, #f1f5f9);
   border: 2px solid #e2e8f0;
   border-radius: 15px;
   padding: 25px;
   text-align: center;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.zone-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-lighter));
}

.zone-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px rgba(5, 150, 105, 0.15);
   border-color: var(--primary-light);
}

.zone-title {
   color: var(--primary-color);
   font-size: 1.4rem;
   font-weight: 700;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
}

.zone-card p {
   margin-bottom: 10px;
   color: #64748b;
   font-size: 1rem;
}

.zone-card strong {
   color: var(--primary-color);
   font-weight: 600;
}

.timeline {
   background: var(--highlight-bg);
   border-radius: 15px;
   padding: 35px;
   margin: 30px 0;
   border-left: 4px solid var(--primary-light);
   position: relative;
}

.timeline::before {
   content: '⏱️';
   position: absolute;
   top: -15px;
   left: 20px;
   background: white;
   padding: 8px;
   border-radius: 50%;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   font-size: 1.2rem;
}

.timeline-step {
   display: flex;
   align-items: center;
   margin-bottom: 20px;
   position: relative;
}

.timeline-step:last-child {
   margin-bottom: 0;
}

.timeline-number {
   background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
   color: white;
   width: 35px;
   height: 35px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   margin-right: 18px;
   flex-shrink: 0;
   box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.timeline-content {
   flex: 1;
}

.timeline-content strong {
   color: var(--primary-color);
   font-size: 1.1rem;
   display: block;
   margin-bottom: 5px;
}

.shipping-table {
   width: 100%;
   border-collapse: collapse;
   margin: 25px 0;
   background: white;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
   border: 1px solid #e5e7eb;
}

.shipping-table th {
   background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
   color: white;
   padding: 18px 20px;
   text-align: left;
   font-weight: 700;
   font-size: 1rem;
   border-bottom: 2px solid var(--primary-darker);
}

.shipping-table td {
   padding: 18px 20px;
   border-bottom: 1px solid #e5e7eb;
   font-size: 1rem;
}

.shipping-table tr:nth-child(even) {
   background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.shipping-table tr:hover {
   background: var(--accent-bg);
   transition: all 0.3s ease;
}

.contact-info {
   /* background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--primary-lighter)); */
   color: white;
   /* padding: 50px 40px;
   border-radius: 20px; */
   text-align: center;
   /* margin-top: 60px;
   box-shadow: 0 20px 40px rgba(5, 150, 105, 0.3); */
   position: relative;
   overflow: hidden;
}

.contact-info::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.contact-info h3 {
   font-size: 2.2rem;
   font-weight: 700;
   margin-bottom: 20px;
   position: relative;
   z-index: 2;
}

.contact-info p {
   font-size: 1.2rem;
   margin-bottom: 30px;
   opacity: 0.95;
   position: relative;
   z-index: 2;
}

.contact-info .btn {
   background: white;
   color: var(--primary-color);
   border: none;
   padding: 15px 40px;
   border-radius: 50px;
   font-weight: 700;
   font-size: 1.1rem;
   transition: all 0.3s ease;
   position: relative;
   z-index: 2;
}

.contact-info .btn:hover {
   background: #f8fafc;
   transform: translateY(-3px);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
   .policy-header {
      padding: 80px 0 60px;
   }

   .policy-header h1 {
      font-size: 2.0rem;
   }

   .policy-header .lead {
      font-size: 1.2rem;
   }

   .policy-card {
      padding: 30px 25px;
   }

   .policy-title {
      font-size: 2.2rem;
   }

   .policy-subtitle {
      font-size: 1.4rem;
   }

   .shipping-zones {
      grid-template-columns: 1fr;
   }

   .contact-info {
      padding: 30px 20px;
   }

   .contact-info h3 {
      font-size: 1.8rem;
   }

   .refund-table,
   .shipping-table {
      font-size: 0.9rem;
   }

   .refund-table th,
   .refund-table td,
   .shipping-table th,
   .shipping-table td {
      padding: 12px 15px;
   }
}

/* Contact Page Specific Styles */
.contact-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 30px;
   margin: 40px 0;
}

.contact-item {
   background: var(--highlight-bg);
   padding: 30px 25px;
   border-radius: 15px;
   text-align: center;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   border: 2px solid transparent;
}

.contact-item:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
   border-color: var(--primary-light);
}

.contact-icon {
   width: 70px;
   height: 70px;
   background: var(--primary-color);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 20px;
   font-size: 24px;
   color: white;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-item h3 {
   color: var(--primary-dark);
   margin-bottom: 15px;
   font-size: 1.3rem;
   font-weight: 600;
}

.contact-item p {
   color: #4b5563;
   line-height: 1.6;
   margin: 0;
}

.contact-methods {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 25px;
   margin: 40px 0;
}

.method-card {
   background: white;
   padding: 25px;
   border-radius: 12px;
   border-left: 4px solid var(--primary-color);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
   transition: transform 0.3s ease;
}

.method-card:hover {
   transform: translateY(-3px);
}

.method-card h4 {
   color: var(--primary-dark);
   margin-bottom: 12px;
   font-size: 1.1rem;
   font-weight: 600;
}

.method-card p {
   color: #6b7280;
   line-height: 1.6;
   margin: 0;
}

.social-links {
   display: flex;
   flex-wrap: wrap;
   gap: 15px;
   margin-top: 20px;
}

.social-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 16px;
   background: var(--primary-color);
   color: white;
   text-decoration: none;
   border-radius: 25px;
   font-weight: 500;
   transition: all 0.3s ease;
}

.social-link:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
   color: white;
}

/* Theme Overrides for different policy pages */

/* Privacy Policy - Blue Theme */
.privacy-policy-theme {
   --primary-color: #1e3a8a;
   --primary-light: #3b82f6;
   --primary-lighter: #60a5fa;
   --primary-dark: #1d4ed8;
   --primary-darker: #1e40af;
   --accent-bg: linear-gradient(135deg, #dbeafe, #bfdbfe);
   --highlight-bg: linear-gradient(135deg, #eff6ff, #dbeafe);
   --list-icon: '🔒';
   --warning-icon: '⚠️';
}

/* Terms & Conditions - Green Theme */
.terms-conditions-theme {
   --primary-color: #059669;
   --primary-light: #10b981;
   --primary-lighter: #34d399;
   --primary-dark: #047857;
   --primary-darker: #065f46;
   --accent-bg: linear-gradient(135deg, #d1fae5, #a7f3d0);
   --highlight-bg: linear-gradient(135deg, #f0fdf4, #dcfce7);
   --list-icon: '📋';
   --warning-icon: '⚠️';
}

/* Cancellation & Refund Policy - Red Theme */
.cancellation-refund-theme {
   --primary-color: #dc2626;
   --primary-light: #ef4444;
   --primary-lighter: #f87171;
   --primary-dark: #b91c1c;
   --primary-darker: #991b1b;
   --accent-bg: linear-gradient(135deg, #fee2e2, #fecaca);
   --highlight-bg: linear-gradient(135deg, #fef2f2, #fee2e2);
   --list-icon: '⚠️';
   --warning-icon: '⚠️';
}

/* Shipping Policy - Purple Theme */
.shipping-policy-theme {
   --primary-color: #7c3aed;
   --primary-light: #8b5cf6;
   --primary-lighter: #a855f7;
   --primary-dark: #6d28d9;
   --primary-darker: #5b21b6;
   --accent-bg: linear-gradient(135deg, #ede9fe, #ddd6fe);
   --highlight-bg: linear-gradient(135deg, #f3e8ff, #e9d5ff);
   --list-icon: '📦';
   --warning-icon: '🚚';
}

/* Contact Us - Orange Theme */
.contact-us-theme {
   --primary-color: #ea580c;
   --primary-light: #f97316;
   --primary-lighter: #fb923c;
   --primary-dark: #c2410c;
   --primary-darker: #9a3412;
   --accent-bg: linear-gradient(135deg, #fed7aa, #fdba74);
   --highlight-bg: linear-gradient(135deg, #fff7ed, #fed7aa);
   --list-icon: '📞';
   --warning-icon: 'ℹ️';
}

/* Breadcrumb Styling */
.breadcrumb {
   background: transparent;
   padding: 0;
   margin-bottom: 20px;
}

.breadcrumb-item a {
   color: var(--primary-color);
   text-decoration: none;
   font-weight: 500;
}

.breadcrumb-item a:hover {
   color: var(--primary-dark);
   text-decoration: underline;
}

.breadcrumb-item.active {
   color: var(--primary-dark);
   font-weight: 600;
}