﻿:root {
    --primary: #0a0e23;
    --secondary: #141a3a;
    --accent: #ff6f00;
    --accent-light: #ff8f33;
    --accent-dark: #e65c00;
    --text: #ffffff;
    --text-secondary: #b8c2d9;
    --card-bg: #1e2347;
    --gradient: linear-gradient(135deg, #ff6f00 0%, #ff3e00 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.cookies-hero {
    background: linear-gradient(135deg, rgba(10, 14, 35, 0.95), rgba(20, 26, 58, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="cookieGrad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ff6f00;stop-opacity:0.2" /><stop offset="100%" style="stop-color:%23ff3e00;stop-opacity:0.05" /></radialGradient></defs><rect width="1000" height="1000" fill="url(%23cookieGrad)"/><circle cx="200" cy="200" r="3" fill="%23ff6f00" opacity="0.3"/><circle cx="400" cy="150" r="2" fill="%23ff6f00" opacity="0.4"/><circle cx="600" cy="300" r="4" fill="%23ff6f00" opacity="0.2"/><circle cx="800" cy="250" r="3" fill="%23ff6f00" opacity="0.3"/><circle cx="300" cy="400" r="2" fill="%23ff6f00" opacity="0.4"/><circle cx="700" cy="450" r="3" fill="%23ff6f00" opacity="0.3"/><circle cx="150" cy="600" r="4" fill="%23ff6f00" opacity="0.2"/><circle cx="500" cy="650" r="2" fill="%23ff6f00" opacity="0.4"/><circle cx="850" cy="700" r="3" fill="%23ff6f00" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.cookies-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--accent);
    animation: cookieFloat 3s ease-in-out infinite;
}

@keyframes cookieFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cookies-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.last-updated {
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 111, 0, 0.2);
    margin-top: 20px;
}

    .last-updated i {
        color: var(--accent);
    }

/* Cookie Banner Demo */
.cookie-demo {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

    .cookie-demo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient);
    }

.demo-label {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--accent);
    color: var(--text);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Main Container */
.cookies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Table of Contents */
.toc-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 111, 0, 0.1);
  
}

.toc-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    list-style: none;
}

    .toc-list li {
        padding: 8px 0;
    }

    .toc-list a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 400;
    }

        .toc-list a:hover {
            color: var(--accent);
            padding-left: 10px;
        }

        .toc-list a i {
            font-size: 0.8rem;
            opacity: 0.6;
        }

/* Cookies Content */
.cookies-content {
    background: var(--secondary);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255, 111, 0, 0.1);
}

.cookies-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 111, 0, 0.1);
}

    .cookies-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.section-title {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-title i {
        font-size: 1.2rem;
    }

.section-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: justify;
}

.section-content ul, .section-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
}

.section-content ul li::marker {
    color: var(--accent);
}

/* Cookie Types Cards */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cookie-type-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 111, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .cookie-type-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 111, 0, 0.2);
    }

    .cookie-type-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient);
    }

.cookie-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-type-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.cookie-type-title {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.cookie-type-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-duration {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 111, 0, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Highlight Boxes */
.highlight-box {
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

    .highlight-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient);
        border-radius: 12px 12px 0 0;
    }

.highlight-title {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cookie Management Section */
.cookie-management {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    border: 1px solid rgba(255, 111, 0, 0.1);
}

.browser-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.browser-card {
    background: var(--secondary);
    border: 1px solid rgba(255, 111, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

    .browser-card:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
    }

.browser-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.browser-name {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 5px;
}

.browser-shortcut {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255, 111, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Contact CTA */
.contact-cta {
    background: var(--gradient);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

    .contact-cta h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--text);
    }

    .contact-cta p {
        margin-bottom: 25px;
        color: rgba(255, 255, 255, 0.9);
    }

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
    backdrop-filter: blur(10px);
}

    .btn-primary:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.btn-secondary {
    background: var(--card-bg);
    color: var(--accent);
}

    .btn-secondary:hover {
        background: var(--accent);
        color: var(--text);
        transform: translateY(-2px);
    }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 111, 0, 0.4);
    }


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--shadow-heavy);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        color: white;
        transform: translateY(-5px);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .cookies-hero {
        padding: 120px 0 80px;
        min-height: 50vh;
    }

    .cookies-container {
        padding: 60px 15px;
    }

    .cookies-content {
        padding: 30px 20px;
    }

    .toc-section {
        padding: 25px 20px;
        position: relative;
        top: 0;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cookie-types {
        grid-template-columns: 1fr;
    }

    .browser-instructions {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .cookies-hero h1 {
        font-size: 2rem;
    }

    .cookie-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .last-updated {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-content ul, .section-content ol {
        padding-left: 20px;
    }

    .cookie-demo {
        margin: 20px 10px;
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .cookies-hero, .toc-section, .contact-cta {
        background: white;
        color: black;
    }

    .back-to-top {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for sections */
.cookies-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

    .cookies-section:nth-child(1) {
        animation-delay: 0.1s;
    }

    .cookies-section:nth-child(2) {
        animation-delay: 0.2s;
    }

    .cookies-section:nth-child(3) {
        animation-delay: 0.3s;
    }

    .cookies-section:nth-child(4) {
        animation-delay: 0.4s;
    }

    .cookies-section:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
