/* Privacy Policy Specific Styles */
*{
    color: #ffffff;
}

.privacy-container {
    padding-top: var(--header-height);
}

:root {
    /* Modern Fintech Color Scheme */
    --primary: #357960;
    --primary-dark: #285c4a;
    --primary-light: #e8f5f0;
    --accent: #4a8dff;
    --accent-dark: #3a70cc;
    --text-dark: #1a2521;
    --text-light: #f5f9f7;
    --bg-light: #ffffff;
    --bg-dark: #1a2521;
    --bg-gray: #f8faf9;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'DM Sans', sans-serif;
}

/* Hero Section */
.privacy-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    padding-top: -30px;
}

.privacy-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.privacy-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Table of Contents */
.privacy-nav {
    background: #f8fafc;
    padding: 30px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.privacy-toc h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.toc-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    text-decoration: none;
}

.toc-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.toc-link i {
    font-size: 1.2rem;
}

/* Main Content */
.privacy-content {
    padding: 80px 0;
    background: white;
}

.policy-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-of-type {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.policy-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.policy-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.policy-highlight {
    background: #e0f2fe;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.policy-highlight i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.policy-highlight.important {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.policy-highlight.important i {
    color: #f59e0b;
}

/* Data Types */
.data-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.data-type {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.data-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
}

.data-content h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.data-content ul {
    list-style: none;
    padding: 0;
}

.data-content li {
    margin-bottom: 8px;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.data-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.usage-card {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 10px;
    transition: var(--transition);
}

.usage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.usage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
}

.usage-card h4 {
    margin-bottom: 10px;
}

/* Disclosure Table */
.disclosure-table {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.disclosure-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.disclosure-row:last-child {
    border-bottom: none;
}

.disclosure-party {
    flex: 0 0 200px;
    padding: 20px;
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-color);
}

.disclosure-detail {
    flex: 1;
    padding: 20px;
    background: white;
    color: var(--text-light);
}

/* Security Features */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.security-card {
    text-align: center;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--transition);
}

.security-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.security-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Rights List */
.rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.right-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.right-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-size: 1.3rem;
}

.right-content h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Cookies Info */
.cookies-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cookie-type {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.cookie-type h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.cookie-control {
    margin-top: 40px;
    padding: 30px;
    background: #e0f2fe;
    border-radius: 10px;
}

.cookie-control h4 {
    margin-bottom: 10px;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.compliance-card {
    padding: 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    position: relative;
    transition: var(--transition);
}

.compliance-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.compliance-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
}

.compliance-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contact Section */
.policy-updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.version-history ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.version-history li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-light);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.contact-method i {
    color: var(--primary-color);
}

.privacy-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    transition: var(--transition);
}

.privacy-email:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-color);
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-toggle h4 {
    margin-bottom: 5px;
}

.cookie-toggle p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
}

.toggle-switch input {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-label {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-label::after {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privacy-hero-title {
        font-size: 2.5rem;
    }
    
    .toc-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-type {
        flex-direction: column;
        text-align: center;
    }
    
    .disclosure-row {
        flex-direction: column;
    }
    
    .disclosure-party {
        flex: none;
    }
    
    .policy-updates {
        grid-template-columns: 1fr;
    }
    
    .rights-list {
        grid-template-columns: 1fr;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
}