/**
 * Privacy Policy Page Styles
 * Lucky Logistics Platform
 * Last updated: 2026-01-01
 * Extends terms.css base styles
 */

/* Import base legal styles from terms.css */
@import url('/css/pages/legal/terms.css');

/* Privacy-specific header gradient */
.privacy-page .legal-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Privacy notice styling */
.important-notice.privacy {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.important-notice.privacy .notice-icon {
    background: #10b981;
}

.important-notice.privacy .notice-content h3 {
    color: #065f46;
}

.important-notice.privacy .notice-content p {
    color: #064e3b;
}

/* Data category cards */
.data-category {
    background: #f8fafc;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.category-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.category-header h4 {
    margin: 0;
    color: #1e293b;
}

.category-content {
    padding: 20px;
}

.category-content .styled-list {
    margin: 0;
}

/* Collection methods */
.collection-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.method-content h4 {
    margin: 0 0 8px;
    color: #1e293b;
}

.method-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Purpose grid */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.purpose-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.purpose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.purpose-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}

.purpose-card h4 {
    color: #1e293b;
    margin: 0 0 12px;
}

.purpose-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.purpose-card ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #64748b;
    font-size: 0.9rem;
}

.purpose-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

/* Privacy highlight box */
.highlight-box.privacy {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #34d399;
}

.highlight-box.privacy h4 {
    color: #065f46;
}

.highlight-box.privacy h4 i {
    color: #10b981;
}

.highlight-box.privacy p {
    color: #064e3b;
}

/* Security grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.security-item {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.security-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin: 0 auto 16px;
}

.security-item h4 {
    color: #1e293b;
    margin: 0 0 8px;
    font-size: 1rem;
}

.security-item p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Cookie types */
.cookie-types {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.cookie-item {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cookie-item.essential {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.cookie-item.functional {
    background: #f8fafc;
}

.cookie-item.analytics {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #60a5fa;
}

.cookie-item.marketing {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f472b6;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-header i {
    font-size: 20px;
    color: #475569;
}

.cookie-header h4 {
    margin: 0;
    color: #1e293b;
    flex: 1;
}

.cookie-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cookie-item.essential .cookie-badge {
    background: #f59e0b;
    color: #fff;
}

.cookie-item:not(.essential) .cookie-badge {
    background: #94a3b8;
    color: #fff;
}

.cookie-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.right-card {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.right-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.right-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin: 0 auto 16px;
}

.right-card h4 {
    color: #1e293b;
    margin: 0 0 8px;
}

.right-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Protection list */
.protection-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.protection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #86efac;
}

.protection-item i {
    color: #10b981;
    font-size: 20px;
}

.protection-item span {
    color: #166534;
    font-size: 0.95rem;
}

/* Regulatory section */
.regulatory-section {
    background: #f8fafc;
    padding: 32px 40px;
    border-top: 1px solid #e2e8f0;
}

.regulatory-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    margin-bottom: 16px;
}

.regulatory-section h3 i {
    color: #3b82f6;
}

.regulatory-info {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.regulatory-info p {
    margin: 4px 0;
    color: #475569;
}

.regulatory-info a {
    color: #3b82f6;
    text-decoration: none;
}

.regulatory-info a:hover {
    text-decoration: underline;
}

/* Contact note */
.contact-note {
    font-size: 0.85rem;
    color: #64748b !important;
    font-style: italic;
}

/* Privacy contact section override */
.privacy-page .contact-section {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
}

.privacy-page .contact-section h2 i {
    color: #6ee7b7;
}

.privacy-page .contact-item > i {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.privacy-page .service-hours i {
    color: #6ee7b7;
}

/* Responsive */
@media (max-width: 768px) {
    .collection-methods,
    .purpose-grid,
    .security-grid,
    .rights-grid,
    .protection-list {
        grid-template-columns: 1fr;
    }
    
    .regulatory-section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .cookie-header {
        flex-wrap: wrap;
    }
    
    .cookie-badge {
        margin-top: 8px;
    }
}
