/* Unified CSS for Privacy Policy and Terms & Conditions Pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

:root {
    --primary-color: rgb(36, 100, 251);
    --primary-dark: #1d4ed8;
    --secondary-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: rgb(36, 100, 251);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: #fafbfc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    background: var(--white);
    margin-top: -30px;
    position: relative;
    z-index: 2;
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-xl);
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Table of Contents */
.toc {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    border-left: 4px solid var(--primary-color);
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.toc-item {
    padding: 12px 16px;
    background: var(--white);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-inline: 1rem;
}

.toc-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.toc-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toc-link::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.toc-link:hover::before {
    transform: translateX(4px);
}

/* Section Styling - Works for both policy-section and terms-section */
.policy-section,
.terms-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Text styling - Works for both policy-text and terms-text */
.policy-text,
.terms-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.policy-text a,
.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.policy-text a:hover,
.terms-text a:hover {
    border-bottom-color: var(--primary-color);
}

/* Highlight Box - For important notices */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '⚠️';
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    opacity: 0.6;
}

.highlight-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
}

.highlight-text {
    color: #92400e;
    line-height: 1.6;
}

/* Feature List Styling */
.feature-list {
    list-style: none;
    margin: 24px 0;
}

.feature-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-title::before {
    content: '✓';
    background: var(--gradient-primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 36px;
}

/* Alternative feature item styling with icon */
.feature-item.with-icon {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.feature-item.with-icon .feature-description {
    margin-left: 0;
}

.feature-icon {
    background: var(--gradient-primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* Refund Policy Cards - Reusing feature card styles */
.refund-grid {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.refund-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.refund-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.refund-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.refund-card:hover::before {
    opacity: 1;
}

.refund-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.refund-title::before {
    content: '✓';
    background: var(--gradient-primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.refund-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 36px;
}

/* Solution Section */
.solution-section {
    background: var(--primary-color);
    padding: 80px 40px;
    border-radius: 24px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="1"/></g></svg>') repeat;
}

.solution-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-image {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.solution-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.solution-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.solution-features {
    list-style: none;
    display: grid;
    gap: 12px;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    padding: 8px 0;
}

.solution-features li::before {
    content: "\21B3";
    font-size: 16px;
    flex-shrink: 0;
}

/* Stats Section */
.stats-section {
    background: var(--white);
    margin: 80px -40px 0;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .content-wrapper {
        padding: 0 24px;
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solution-section,
    .stats-section {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .main-content {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .toc {
        padding: 24px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for counters */
.counter {
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .content-wrapper,.solution-section, .stats-section {
        max-width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
}