:root {
    --primary: #6366f1;
    --primary-light: #e0e7ff;
    --primary-dark: #4f46e5;
    --primary-extra-light: #f5f7ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

.privacy-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
    opacity: 0.5;
}

.privacy-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.privacy-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.privacy-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.privacy-container {
    max-width: 1200px;
    margin: -4rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.privacy-tabs-container {
    position: relative;
    margin-bottom: 2rem;
}

.privacy-tabs-scroll {
    position: relative;
    overflow: hidden;
}

.privacy-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.privacy-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.privacy-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    margin-right: 0.5rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.privacy-tab:last-child {
    margin-right: 0;
}

.privacy-tab:hover {
    color: var(--primary);
    background: var(--primary-extra-light);
}

.privacy-tab.active {
    color: var(--primary-dark);
    background: var(--primary-light);
    font-weight: 600;
}

.privacy-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 2px;
    rotate: 45deg;
}

/* Scroll indicators */
.scroll-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator.left {
    left: 0;
    transform: rotate(180deg);
}

.scroll-indicator.right {
    right: 0;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator i {
    color: var(--primary);
    background: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    pointer-events: auto;
    cursor: pointer;
}

.privacy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    margin-bottom: 2rem;
}

.privacy-card h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.privacy-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.privacy-card h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--gray-800);
    position: relative;
    padding-left: 1.5rem;
}

.privacy-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.privacy-card p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.privacy-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-card li {
    margin-bottom: 0.75rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.privacy-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
    transition: var(--transition);
}

.highlight-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.highlight-box p {
    color: var(--gray-800);
    margin-bottom: 0;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.privacy-feature {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.privacy-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.privacy-feature i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.privacy-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.privacy-feature p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: 5rem 1.5rem;
    }
    
    .privacy-hero h1 {
        font-size: 2.5rem;
    }
    
    .privacy-hero p {
        font-size: 1.1rem;
    }
    
    .privacy-container {
        padding: 0 1.5rem;
        margin-top: -3rem;
    }
    
    .privacy-card {
        padding: 2rem;
    }
    
    .privacy-card h2 {
        font-size: 1.75rem;
    }
    
    .privacy-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .privacy-hero {
        padding: 4rem 1rem;
    }
    
    .privacy-hero h1 {
        font-size: 2rem;
    }
    
    .privacy-container {
        padding: 0 1rem;
    }
    
    .privacy-card {
        padding: 1.5rem;
    }
    
    .privacy-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}
