/**
 * Cookie Policy Page Styles
 */

.cookie-policy-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.policy-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2563eb;
}

.policy-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
}

.policy-updated {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Action Buttons */
.policy-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ccm-policy-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ccm-btn-primary {
    background: #2563eb;
    color: white;
}

.ccm-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ccm-btn-secondary {
    background: #dc2626;
    color: white;
}

.ccm-btn-secondary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Messages */
.ccm-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ccm-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.ccm-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Sections */
.policy-section {
    margin-bottom: 50px;
}

.policy-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.policy-section p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

.policy-section a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-count {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
}

.category-description {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 15px;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-table thead {
    background: #1e293b;
    color: white;
}

.cookie-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.cookie-table tbody tr:last-child {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: #f8fafc;
}

.cookie-table tbody td {
    padding: 14px 16px;
    color: #475569;
}

.cookie-name code {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
}

.item-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.item-type-cookie {
    background: #dbeafe;
    color: #1e40af;
}

.item-type-localstorage {
    background: #fef3c7;
    color: #92400e;
}

.item-type-sessionstorage {
    background: #fce7f3;
    color: #831843;
}

.item-type-script {
    background: #e0e7ff;
    color: #3730a3;
}

.item-type-iframe {
    background: #f3e8ff;
    color: #6b21a8;
}

.no-cookies {
    color: #94a3b8;
    font-style: italic;
    margin: 20px 0;
}

/* Rights List */
.rights-list {
    margin: 20px 0;
    padding-left: 20px;
}

.rights-list li {
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.6;
}

.rights-list strong {
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-policy-page {
        padding: 20px 15px;
    }

    .policy-header h1 {
        font-size: 28px;
    }

    .policy-section h2 {
        font-size: 22px;
    }

    .policy-actions {
        flex-direction: column;
    }

    .ccm-policy-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-category {
        padding: 20px 15px;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-table {
        font-size: 12px;
    }

    .cookie-table thead th,
    .cookie-table tbody td {
        padding: 10px 8px;
    }

    /* Make table scrollable on mobile */
    .cookie-table thead th:first-child,
    .cookie-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 1;
    }

    .cookie-table thead th:first-child {
        background: #1e293b;
    }
}

@media (max-width: 480px) {
    .cookie-table {
        font-size: 11px;
    }

    .cookie-name code {
        font-size: 11px;
        padding: 2px 4px;
    }
}
