/* ============================================
   PRIVACY PAGE - DARK THEME (Matching Homepage)
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary, #0a0a1a);
    color: var(--text-primary, #f8fafc);
    min-height: 100vh;
    line-height: 1.8;
}

/* Page Header - Dark Theme */
.page-header {
    background: linear-gradient(135deg, var(--bg-primary, #0a0a1a) 0%, var(--bg-secondary, #0d1117) 50%, var(--bg-tertiary, #0f172a) 100%);
    padding: 120px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 0;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.page-header .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary, #94a3b8);
    max-width: 600px;
    margin: 0 auto 16px;
}

.page-header .last-updated {
    color: var(--text-muted, #64748b);
    font-size: 14px;
}

.page-header .shield-icon {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--accent, #06b6d4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Content Section */
.content-section {
    background: var(--glass-bg, rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 30px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--accent, #06b6d4) 100%);
    border-radius: 2px;
}

.content-section h2 i {
    color: var(--primary, #6366f1);
    font-size: 1.2rem;
}

.content-section h3 {
    font-size: 1.15rem;
    color: var(--text-primary, #f8fafc);
    margin: 24px 0 12px;
    font-weight: 600;
}

.content-section p {
    color: var(--text-secondary, #94a3b8);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section ul, 
.content-section ol {
    color: var(--text-secondary, #94a3b8);
    margin: 16px 0;
    padding-left: 24px;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-section ul li strong,
.content-section ol li strong {
    color: var(--text-primary, #f8fafc);
}

.content-section a {
    color: var(--primary, #6366f1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: var(--accent, #06b6d4);
}

/* Highlight Box */
.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-secondary, #94a3b8);
}

/* Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.warning-box p {
    color: #f59e0b;
    margin: 0;
}

/* Info Box */
.info-box {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.info-box p {
    color: var(--accent, #06b6d4);
    margin: 0;
}

/* Success Box */
.success-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.success-box p {
    color: #22c55e;
    margin: 0;
}

/* Privacy Badges/Icons Row */
.privacy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
}

.privacy-badge i {
    color: var(--primary, #6366f1);
}

/* Table of Contents */
.toc {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 40px;
}

.toc h3 {
    color: var(--text-primary, #f8fafc);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}

.toc ul li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.toc ul li a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.toc ul li a::before {
    content: '→';
    color: var(--primary, #6366f1);
}

.toc ul li a:hover {
    color: var(--primary, #6366f1);
    padding-left: 8px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
}

.data-table th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary, #f8fafc);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    margin-top: 40px;
}

.contact-section h3 {
    color: var(--text-primary, #f8fafc);
    margin-bottom: 12px;
}

.contact-section p {
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 20px;
}

.contact-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

.rights-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin: 0;
}

.rights-list li i {
    color: var(--primary, #6366f1);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rights-list li span {
    color: var(--text-secondary, #94a3b8);
}

/* Responsive Design */
@media (max-width: 900px) {
    .page-header {
        padding: 100px 20px 60px;
    }
    
    .container {
        padding: 40px 20px;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .toc ul {
        columns: 1;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .privacy-badges {
        flex-direction: column;
    }
    
    .rights-list {
        grid-template-columns: 1fr;
    }
}

/* Light Theme Override */
body.light-theme {
    background: #f8fafc;
    color: #1e293b;
}

body.light-theme .page-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body.light-theme .page-header::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

body.light-theme .page-header h1 {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

body.light-theme .page-header .last-updated {
    color: rgba(255, 255, 255, 0.7);
}

body.light-theme .page-header .shield-icon {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .content-section {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .content-section h2,
body.light-theme .content-section h3 {
    color: #1e293b;
}

body.light-theme .content-section h2 i {
    color: #6366f1;
}

body.light-theme .content-section p,
body.light-theme .content-section ul,
body.light-theme .content-section ol {
    color: #64748b;
}

body.light-theme .content-section ul li strong,
body.light-theme .content-section ol li strong {
    color: #1e293b;
}

body.light-theme .toc {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .toc h3 {
    color: #1e293b;
}

body.light-theme .toc ul li a {
    color: #64748b;
}

body.light-theme .highlight-box {
    background: #e0e7ff;
    border-color: #c7d2fe;
}

body.light-theme .highlight-box p {
    color: #4338ca;
}

body.light-theme .warning-box {
    background: #fef3c7;
    border-color: #fcd34d;
}

body.light-theme .warning-box p {
    color: #b45309;
}

body.light-theme .info-box {
    background: #cffafe;
    border-color: #67e8f9;
}

body.light-theme .info-box p {
    color: #0e7490;
}

body.light-theme .success-box {
    background: #dcfce7;
    border-color: #86efac;
}

body.light-theme .success-box p {
    color: #16a34a;
}

body.light-theme .privacy-badge {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

body.light-theme .privacy-badge i {
    color: #6366f1;
}

body.light-theme .data-table th {
    background: #f1f5f9;
    color: #1e293b;
}

body.light-theme .data-table td {
    color: #64748b;
    border-color: #e2e8f0;
}

body.light-theme .data-table tbody tr:hover {
    background: #f8fafc;
}

body.light-theme .contact-section {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-color: #c7d2fe;
}

body.light-theme .contact-section h3 {
    color: #1e293b;
}

body.light-theme .contact-section p {
    color: #64748b;
}

body.light-theme .rights-list li {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .rights-list li i {
    color: #6366f1;
}

body.light-theme .rights-list li span {
    color: #64748b;
}
