/**
 * Policy Pages - Creative & Modern Design
 * Beautiful, organized, and professional styling
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --policy-primary: #3b82f6;
    --policy-primary-dark: #1e40af;
    --policy-secondary: #10b981;
    --policy-accent: #8b5cf6;
    --policy-warning: #f59e0b;
    --policy-danger: #ef4444;
    --policy-success: #10b981;
    --policy-dark: #0f172a;
    --policy-text: #334155;
    --policy-text-light: #64748b;
    --policy-bg: #f8fafc;
    --policy-card: #ffffff;
    --policy-border: rgba(0, 0, 0, 0.08);
}

/* ========================================
   Hero Section
   ======================================== */
.policy-hero {
    position: relative;
    padding: calc(80px + 3rem) 0 3rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.policy-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.policy-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    animation: patternPulse 15s ease-in-out infinite;
}

.policy-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes patternPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.policy-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.policy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.policy-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.policy-breadcrumb a:hover {
    color: #60a5fa;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Hero Content */
.policy-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.policy-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 28px;
    margin-bottom: 1.5rem;
    color: #60a5fa;
    animation: iconFloat 4s ease-in-out infinite;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 0 30px rgba(59, 130, 246, 0.1);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    75% { transform: translateY(-4px) rotate(-2deg); }
}

.policy-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.policy-updated svg {
    color: #60a5fa;
}

/* ========================================
   Content Section
   ======================================== */
.policy-content-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--policy-bg) 0%, #fff 100%);
    min-height: 60vh;
}

.policy-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3.5rem;
    align-items: stretch; /* Make both elements same height */
}

/* Desktop Large Screens - Better Layout */
@media (min-width: 1400px) {
    .policy-layout {
        grid-template-columns: 1fr 420px;
        gap: 4rem;
        align-items: stretch; /* Make both elements same height */
    }
}

/* On large screens, ensure sidebar matches content height */
@media (min-width: 1025px) {
    .policy-sidebar {
        align-self: stretch; /* Stretch to match content height */
        height: 100%; /* Fill grid cell height */
    }
    
    .policy-content {
        height: 100%; /* Fill grid cell height */
    }
}

/* Tablet and Below - Sidebar First */
@media (max-width: 1024px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .policy-sidebar {
        order: -1; /* Sidebar appears before content */
        align-self: start;
    }
}

/* Main Content */
.policy-content {
    background: var(--policy-card);
    border-radius: 24px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--policy-border);
    overflow: hidden;
    position: relative;
    min-height: 500px; /* Increased minimum height */
    height: 100%; /* Fill grid cell height */
    display: flex;
    flex-direction: column;
}

/* Remove max-height on desktop for better content flow */
@media (min-width: 1025px) {
    .policy-content {
        max-height: none;
        overflow-y: visible;
        min-height: 600px; /* Increased minimum height for desktop */
        height: 100%; /* Match sidebar height */
        align-self: stretch; /* Stretch to fill grid cell */
    }
}

/* Keep scrollable on very large content */
@media (min-width: 1025px) and (max-height: 800px) {
    .policy-content {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        min-height: auto; /* Allow smaller height on short screens */
    }
}

/* Custom Scrollbar for Policy Content */
.policy-content::-webkit-scrollbar {
    width: 8px;
}

.policy-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--policy-primary) 0%, var(--policy-secondary) 100%);
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--policy-primary-dark) 0%, var(--policy-primary) 100%);
}

.policy-content-inner {
    padding: 3.5rem; /* Increased padding for more height */
    flex: 1; /* Fill available space in flex container */
    min-height: 100%; /* Ensure inner content fills container */
}

/* Content Typography */
.policy-content h2 {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--policy-dark);
    margin: 3rem 0 1.25rem;
    padding-left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 5px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--policy-primary) 0%, var(--policy-secondary) 100%);
    border-radius: 3px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--policy-text);
    margin: 2rem 0 1rem;
}

.policy-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--policy-text);
    margin: 1.5rem 0 0.75rem;
}

.policy-content p {
    color: var(--policy-text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.policy-content ul,
.policy-content ol {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
}

.policy-content li {
    color: var(--policy-text);
    line-height: 1.8;
    margin-bottom: 0.625rem;
    padding-left: 0.5rem;
}

.policy-content ul li::marker {
    color: var(--policy-primary);
    font-size: 1.2em;
}

.policy-content ol li::marker {
    color: var(--policy-primary);
    font-weight: 700;
}

.policy-content a {
    color: var(--policy-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--policy-primary);
    transition: all 0.3s ease;
}

.policy-content a:hover {
    color: var(--policy-primary-dark);
    border-bottom-style: solid;
}

/* ========================================
   Special Content Boxes
   ======================================== */

/* Intro Box */
.policy-intro-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.policy-intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--policy-primary) 0%, var(--policy-secondary) 100%);
}

.policy-intro-box p {
    margin: 0;
    font-size: 1.1rem;
}

/* Highlight Box */
.policy-highlight-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.policy-highlight-box.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.policy-highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.policy-highlight-box h3 {
    margin-top: 0;
    color: var(--policy-dark);
}

.policy-highlight-box p:last-child {
    margin-bottom: 0;
}

/* Contact Box */
.policy-contact-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.policy-contact-box ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.policy-contact-box li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.2);
}

.policy-contact-box li:last-child {
    border-bottom: none;
}

/* Update Notice */
.policy-update-notice {
    text-align: center;
    color: var(--policy-text-light);
    font-size: 0.875rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--policy-border);
}

/* ========================================
   Policy Grid (for info boxes)
   ======================================== */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.policy-grid-item {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--policy-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.policy-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--policy-primary);
}

.policy-grid-item h4 {
    margin: 0 0 0.5rem;
    color: var(--policy-primary);
    font-size: 1rem;
}

.policy-grid-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--policy-text-light);
}

/* ========================================
   Checklist Styles
   ======================================== */
.policy-checklist {
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--policy-success);
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   Steps Styles
   ======================================== */
.policy-steps {
    margin: 2rem 0;
    position: relative;
}

.policy-steps::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: linear-gradient(180deg, var(--policy-primary) 0%, var(--policy-secondary) 100%);
    border-radius: 2px;
}

.step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--policy-primary) 0%, var(--policy-primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.step-content {
    flex: 1;
    background: #fff;
    border: 1px solid var(--policy-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-content h4 {
    margin: 0 0 0.5rem;
    color: var(--policy-dark);
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--policy-text-light);
}

/* ========================================
   Shipping Options Grid
   ======================================== */
.shipping-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.shipping-option {
    position: relative;
    background: #fff;
    border: 2px solid var(--policy-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--policy-primary);
}

.shipping-option.featured {
    border-color: var(--policy-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.shipping-option .shipping-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--policy-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.shipping-option .shipping-badge.free {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 0.75rem;
    background: var(--policy-success);
}

.shipping-option .shipping-badge.popular {
    background: var(--policy-accent);
}

.shipping-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.shipping-option h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--policy-dark);
}

.shipping-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.shipping-note {
    font-size: 0.8rem !important;
    color: var(--policy-text-light) !important;
    font-style: italic;
}

/* ========================================
   Timeline Styles
   ======================================== */
.processing-timeline {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid var(--policy-border);
    position: relative;
    overflow: hidden;
}

.processing-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 80px;
    right: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--policy-primary), var(--policy-secondary));
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid var(--policy-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.timeline-content h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--policy-dark);
}

.timeline-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--policy-text-light);
    max-width: 120px;
}

/* ========================================
   Table Styles
   ======================================== */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shipping-table thead {
    background: linear-gradient(135deg, var(--policy-primary) 0%, var(--policy-primary-dark) 100%);
    color: #fff;
}

.shipping-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
}

.shipping-table tbody tr {
    background: #fff;
    border-bottom: 1px solid var(--policy-border);
    transition: all 0.3s ease;
}

.shipping-table tbody tr:hover {
    background: #f8fafc;
}

.shipping-table td {
    padding: 1rem 1.25rem;
    color: var(--policy-text);
}

/* ========================================
   Sidebar
   ======================================== */
.policy-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced from 1.5rem */
    align-self: stretch; /* Stretch to match content height */
    height: 100%; /* Fill grid cell height */
    max-height: 100%;
    overflow: visible; /* Ensure all icons are visible */
}

/* On large screens, ensure sidebar matches content height */
@media (min-width: 1025px) {
    .policy-sidebar {
        max-height: none;
        overflow-y: visible;
        height: 100%; /* Match content height */
        align-self: stretch; /* Stretch to fill grid cell */
    }
}

/* Keep scrollable only if content is very tall */
@media (min-width: 1025px) and (max-height: 800px) {
    .policy-sidebar {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* Custom Scrollbar for Sidebar */
.policy-sidebar::-webkit-scrollbar {
    width: 6px;
}

.policy-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.policy-sidebar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.policy-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Navigation Card */
.policy-nav-card {
    background: var(--policy-card);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--policy-border);
    overflow: visible; /* Ensure all items are visible */
    min-height: fit-content; /* Allow card to expand to show all items */
    max-height: none; /* Remove any height restrictions */
}

.policy-nav-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem; /* Reduced padding */
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--policy-border);
}

.policy-nav-header svg {
    color: var(--policy-primary);
    width: 18px; /* Smaller icon */
    height: 18px;
}

.policy-nav-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--policy-dark);
    margin: 0;
}

.policy-nav-list {
    list-style: none;
    padding: 0.625rem; /* Reduced padding */
    margin: 0;
    overflow: visible; /* Ensure all items are visible */
    min-height: fit-content; /* Allow list to expand */
}

.policy-nav-list li {
    margin-bottom: 0.25rem; /* Reduced margin */
}

.policy-nav-list li:last-child {
    margin-bottom: 0;
}

.policy-nav-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced gap */
    padding: 0.75rem 0.875rem; /* Reduced padding */
    color: var(--policy-text);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.policy-nav-list a:hover {
    background: #f1f5f9;
    color: var(--policy-primary);
    transform: translateX(5px);
}

.policy-nav-list .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Reduced from 36px */
    height: 30px; /* Reduced from 36px */
    background: #f1f5f9;
    border-radius: 8px; /* Slightly smaller radius */
    color: var(--policy-text-light);
    transition: all 0.3s ease;
    flex-shrink: 0; /* Ensure icon is always visible */
}

.policy-nav-list .nav-icon svg {
    width: 16px; /* Smaller SVG icon */
    height: 16px;
}

.policy-nav-list a:hover .nav-icon {
    background: #dbeafe;
    color: var(--policy-primary);
}

.policy-nav-list .nav-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.policy-nav-list .nav-arrow {
    opacity: 0;
    color: var(--policy-primary);
    transition: all 0.3s ease;
}

.policy-nav-list a:hover .nav-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.policy-nav-list li.current a {
    background: linear-gradient(135deg, var(--policy-primary) 0%, var(--policy-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.policy-nav-list li.current .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.policy-nav-list li.current .nav-arrow {
    opacity: 1;
    color: #fff;
}

/* Help Card - Compact with Icon Next to Text */
.policy-help-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 0.75rem 1rem; /* Reduced padding */
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.625rem; /* Reduced gap between icon and content */
    align-items: flex-start;
}

.policy-help-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.policy-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Smaller icon */
    height: 32px; /* Smaller icon */
    background: #fff;
    border-radius: 50%;
    color: var(--policy-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    position: relative;
    flex-shrink: 0; /* Ensure icon is always visible */
    margin-top: 0.125rem; /* Small alignment adjustment */
    grid-row: 1 / -1; /* Span all rows */
}

.policy-help-icon svg {
    width: 16px; /* Smaller SVG icon */
    height: 16px;
}

/* Content area - text and button stack vertically */
.policy-help-card h3 {
    font-size: 0.9rem; /* Smaller font */
    font-weight: 600;
    color: var(--policy-dark);
    margin: 0 0 0.25rem 0; /* Reduced margin bottom */
    line-height: 1.3;
    grid-column: 2; /* In second column */
}

.policy-help-card p {
    font-size: 0.8rem; /* Smaller font */
    color: var(--policy-text-light);
    margin: 0 0 0.5rem 0; /* Reduced margin bottom */
    line-height: 1.4;
    grid-column: 2; /* In second column */
}

.policy-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem; /* Reduced padding */
    background: linear-gradient(135deg, var(--policy-primary) 0%, var(--policy-primary-dark) 100%);
    color: #fff;
    font-size: 0.8rem; /* Smaller font */
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px; /* Smaller radius */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: relative;
    width: auto; /* Not full width */
    margin-top: 0.125rem; /* Reduced margin from text */
    grid-column: 2; /* In second column */
}

.policy-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.policy-help-btn svg {
    width: 14px; /* Smaller icon */
    height: 14px;
}

.policy-help-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Account Card */
.policy-account-card {
    background: var(--policy-card);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--policy-border);
    overflow: hidden;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 0.875rem; /* Reduced gap */
    padding: 1rem 1.25rem; /* Reduced padding */
    text-decoration: none;
    transition: all 0.3s ease;
}

.account-link:hover {
    background: #f8fafc;
}

.account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; /* Reduced from 50px */
    height: 42px; /* Reduced from 50px */
    background: linear-gradient(135deg, var(--policy-secondary) 0%, #059669 100%);
    border-radius: 12px; /* Slightly smaller radius */
    color: #fff;
    flex-shrink: 0; /* Ensure icon is always visible */
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.account-icon svg {
    width: 20px; /* Smaller SVG icon */
    height: 20px;
}

.account-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--policy-dark);
}

.account-desc {
    font-size: 0.8rem;
    color: var(--policy-text-light);
}

.account-arrow {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.account-link:hover .account-arrow {
    color: var(--policy-primary);
    transform: translateX(5px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .policy-content {
        max-height: none; /* Remove height restriction */
        min-height: 400px; /* Increased minimum height for tablet */
    }
    
    .policy-sidebar {
        position: static; /* Remove sticky on mobile */
        max-height: none;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .policy-nav-card {
        width: 100%;
    }
    
    .policy-help-card,
    .policy-account-card {
        width: 100%;
    }
    
    .shipping-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .processing-timeline {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .processing-timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .policy-hero {
        padding: calc(70px + 2rem) 0 2rem;
    }
    
    .policy-title {
        font-size: 2.25rem;
    }
    
    .policy-icon-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .policy-icon-wrapper svg {
        width: 40px;
        height: 40px;
    }
    
    .policy-content-inner {
        padding: 2rem;
    }
    
    .policy-layout {
        gap: 1.5rem;
    }
    
    .policy-content {
        max-height: none; /* Remove height restriction */
        min-height: 350px; /* Increased minimum height for mobile */
    }
    
    .policy-sidebar {
        position: static;
        max-height: none;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .policy-nav-card,
    .policy-help-card,
    .policy-account-card {
        width: 100%;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .shipping-options-grid {
        grid-template-columns: 1fr;
    }
    
    .processing-timeline {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: row;
        text-align: left;
    }
    
    .timeline-content {
        text-align: left;
    }
    
    .timeline-content p {
        max-width: none;
    }
    
    .policy-steps::before {
        left: 23px;
    }
    
    .step-number {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .policy-hero {
        padding: calc(60px + 1.5rem) 0 1.5rem;
    }
    
    .policy-breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .policy-title {
        font-size: 1.75rem;
    }
    
    .policy-updated {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .policy-content-section {
        padding: 2rem 0;
    }
    
    .policy-content-inner {
        padding: 1.5rem;
    }
    
    .policy-layout {
        gap: 1.25rem;
    }
    
    .policy-content {
        max-height: none; /* Remove height restriction */
        min-height: 300px; /* Increased minimum height for small screens */
    }
    
    .policy-content h2 {
        font-size: 1.2rem;
        padding-left: 1rem;
    }
    
    .policy-content h3 {
        font-size: 1.05rem;
    }
    
    .policy-content p,
    .policy-content li {
        font-size: 0.925rem;
    }
    
    .policy-sidebar {
        position: static;
        max-height: none;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .policy-intro-box,
    .policy-highlight-box,
    .policy-contact-box {
        padding: 1.25rem;
    }
    
    .step {
        gap: 1rem;
    }
    
    .step-content {
        padding: 1rem;
    }
    
    .checklist-item {
        padding: 0.875rem 1rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .policy-hero {
        background: none !important;
        padding: 1rem 0;
        color: #000 !important;
    }
    
    .policy-hero-bg,
    .policy-icon-wrapper,
    .policy-updated,
    .policy-sidebar {
        display: none !important;
    }
    
    .policy-title {
        color: #000 !important;
        font-size: 1.5rem;
        -webkit-text-fill-color: #000 !important;
    }
    
    .policy-layout {
        display: block;
    }
    
    .policy-content {
        box-shadow: none;
        border: none;
    }
    
    .policy-content-inner {
        padding: 0;
    }
    
    .policy-intro-box,
    .policy-highlight-box,
    .policy-contact-box {
        border: 1px solid #ccc;
        background: #f5f5f5 !important;
    }
}
