/* Modern Cookie Policy Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Layout */
    --max-width: 800px;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Shadows */
    --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);
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

/* Header */
.policy-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
    color: white;
    padding: var(--space-8) var(--space-6);
    position: relative;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 0 auto;
}

.policy-header::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="4"/></g></svg>') repeat;
    pointer-events: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    color: white;
    transform: translateX(-2px);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-2);
}

.policy-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 0;
}

.last-updated {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

/* Main content */
.policy-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: var(--space-16);
}

.cookie-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: white;
    padding: var(--space-3) var(--space-5);
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
}

.hero-section h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Summary section */
.summary-section {
    margin-bottom: var(--space-16);
}

.summary-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--border-radius-xl);
    padding: var(--space-8);
    border: 1px solid #f3d07a;
    text-align: center;
}

.summary-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.cookie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.cookie-type {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: white;
    padding: var(--space-4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.cookie-type.essential {
    border-left: 4px solid var(--success-color);
}

.cookie-type.none {
    border-left: 4px solid var(--error-color);
}

.cookie-icon {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.cookie-type h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
}

.cookie-type p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Table of contents */
.toc {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-12);
    border: 1px solid var(--border-light);
}

.toc h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2);
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    display: block;
}

.toc a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* Content sections */
.content-section {
    margin-bottom: var(--space-16);
}

.content-section h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-light);
}

.content-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.content-section p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.content-section ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-5);
}

.content-section li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

/* Info cards */
.info-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cookie-explanation h4 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
}

.our-approach {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    margin-top: var(--space-4);
    border-left: 4px solid var(--accent-color);
}

/* Cookie list */
.cookie-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.cookie-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.cookie-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cookie-item.essential {
    border-left: 4px solid var(--success-color);
}

.cookie-item.not-used {
    border-left: 4px solid var(--error-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cookie-header h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.cookie-category {
    padding: var(--space-1) var(--space-3);
    border-radius: 1rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-category.essential {
    background: var(--success-color);
    color: white;
}

.cookie-category.none {
    background: var(--error-color);
    color: white;
}

.cookie-details {
    margin-top: var(--space-4);
}

.cookie-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.info-item strong {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.info-item span {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.cookie-necessity,
.privacy-note {
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    padding: var(--space-3);
    border-left: 4px solid var(--primary-color);
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
}

.no-cookies-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-4);
}

.no-cookies-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.no-cookies-list li:last-child {
    border-bottom: none;
}

/* Service section */
.service-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.service-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.service-type {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: 1rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.service-content p {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.service-content ul {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
}

.service-content li {
    margin-bottom: var(--space-1);
    font-size: var(--font-size-sm);
}

.service-content code {
    background: var(--bg-tertiary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-size-xs);
    color: var(--text-primary);
}

.important-note {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary-color);
}

.important-note h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
}

/* Cookie management */
.cookie-management {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.management-option {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.management-option h4 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.browser-instructions {
    margin-top: var(--space-4);
}

.browser-instructions details {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-2);
    border: 1px solid var(--border-light);
}

.browser-instructions summary {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.browser-instructions summary:hover {
    background: var(--bg-tertiary);
}

.browser-instructions details[open] summary {
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-tertiary);
}

.browser-instructions ol {
    padding: var(--space-4);
    margin: 0;
}

.browser-instructions li {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.warning-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    border: 1px solid #fca5a5;
    border-left: 4px solid var(--error-color);
}

.warning-card p {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.warning-card ul {
    margin-bottom: var(--space-3);
}

/* Compliance info */
.compliance-info {
    display: grid;
    gap: var(--space-6);
}

.compliance-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.compliance-section:nth-child(1) {
    border-left: 4px solid #0ea5e9;
}

.compliance-section:nth-child(2) {
    border-left: 4px solid var(--secondary-color);
}

.compliance-section:nth-child(3) {
    border-left: 4px solid var(--accent-color);
}

.updates-info {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
}

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.contact-item p {
    margin: 0;
    font-size: var(--font-size-sm);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.response-time {
    text-align: center;
    color: var(--text-muted);
}

/* Footer */
.policy-footer {
    background: var(--bg-tertiary);
    padding: var(--space-8) var(--space-6);
    border-top: 1px solid var(--border-color);
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-note {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    max-width: 500px;
    margin: 0 auto;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .policy-header,
    .policy-content,
    .policy-footer {
        max-width: 100%;
    }
    
    .policy-header {
        padding: var(--space-6) var(--space-4);
    }
    
    .policy-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
    
    .policy-content {
        padding: var(--space-8) var(--space-4);
    }
    
    .hero-section h2 {
        font-size: var(--font-size-3xl);
    }
    
    .toc ul {
        grid-template-columns: 1fr;
    }
    
    .cookie-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .service-header,
    .cookie-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .policy-header {
        padding: var(--space-4) var(--space-3);
    }
    
    .policy-content {
        padding: var(--space-6) var(--space-3);
    }
    
    .hero-section {
        margin-bottom: var(--space-10);
    }
    
    .content-section {
        margin-bottom: var(--space-10);
    }
    
    .info-card,
    .service-card,
    .management-option,
    .cookie-item {
        padding: var(--space-4);
    }
    
    .summary-card,
    .contact-section {
        padding: var(--space-6);
    }
}