/* Dark Mode Legal Page Styles (Restored & Padded) */

/* Header */
.policy-page-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95)); /* Dark Gradient */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* INCREASED TOP PADDING TO FIX NAVBAR OVERLAP */
    padding: 180px 0 3rem; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #3b82f6;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.policy-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.policy-intro {
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.policy-highlight {
    color: #3b82f6;
    font-weight: 600;
}

/* Main Content Area */
.policy-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.policy-section {
    margin-bottom: 3rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.text-content {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1rem;
}

.text-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-content a:hover {
    color: #60a5fa;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* Nav List for Browsers / TOC */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.nav-list li a {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.nav-list li a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Cookie / Info Cards */
.cookie-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cookie-card:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-name {
    color: #3b82f6;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.cookie-type {
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-label {
    display: block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.cookie-purpose {
    background: rgba(59, 130, 246, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cookie-purpose strong {
    color: #60a5fa;
}

/* Lists */
.nav-list-bullets {
    padding-left: 1.5rem;
}
.nav-list-bullets li {
    margin-bottom: 0.5rem;
    position: relative;
}
.nav-list-bullets li::marker {
    color: #3b82f6;
}

/* Definition List */
dt {
    color: #fff;
    font-weight: 700;
}
dd {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Contact Boxes overrides */
.contact-box-link {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.contact-box-link:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6 !important;
}

@media (max-width: 768px) {
    .policy-page-header {
        padding: 140px 0 2rem; /* Adjusted for mobile header */
    }
    .policy-title {
        font-size: 2rem;
    }
    .policy-content-wrapper {
        padding: 2rem 1rem;
    }
    .policy-section {
        padding: 1.5rem;
    }
}
