/* Privacy Policy Specific Styles
   ========================================== */

/* Privacy Article Container */
.privacy-content {
    position: relative;
}

/* Section Headers with Visual Hierarchy */
.privacy-content h2 {
    position: relative;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(198, 156, 63, 0.05) 0%, rgba(198, 156, 63, 0.02) 100%);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

/* Subsection styling */
.privacy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(198, 156, 63, 0.3);
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Section dividers */
.privacy-content h2:not(:first-of-type) {
    margin-top: 4rem;
}

.privacy-content h2:not(:first-of-type)::after {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Data Retention Table Styling */
.privacy-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(198, 156, 63, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.privacy-content table thead {
    background: linear-gradient(135deg, rgba(198, 156, 63, 0.2) 0%, rgba(198, 156, 63, 0.1) 100%);
}

.privacy-content table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--gold);
    border-bottom: 2px solid rgba(198, 156, 63, 0.3);
    white-space: nowrap;
}

.privacy-content table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

/* Alternating row colors */
.privacy-content table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.privacy-content table tbody tr:nth-child(even) {
    background: rgba(198, 156, 63, 0.05);
}

/* Row hover effect */
.privacy-content table tbody tr {
    transition: all 0.3s ease;
}

.privacy-content table tbody tr:hover {
    background: rgba(198, 156, 63, 0.1);
    transform: translateX(5px);
}

/* Remove border from last row */
.privacy-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Table icons - Desktop only */
@media (min-width: 768px) {
    .privacy-content table td:first-child::before {
        content: '📊';
        margin-right: 0.5rem;
        opacity: 0.7;
    }
}

/* Sticky Table of Contents */
.privacy-toc {
    position: -webkit-sticky;
    position: sticky;
    top: 6rem; /* Account for navbar height */
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.privacy-toc-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid rgba(198, 156, 63, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.privacy-toc h3 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(198, 156, 63, 0.3);
}

.privacy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-toc-list li {
    margin-bottom: 0.75rem;
}

.privacy-toc-list a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.privacy-toc-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.3s ease;
}

.privacy-toc-list a:hover {
    color: var(--gold);
    background: rgba(198, 156, 63, 0.1);
    padding-left: 1.25rem;
}

.privacy-toc-list a.active {
    color: var(--gold);
    background: rgba(198, 156, 63, 0.15);
    font-weight: 600;
}

.privacy-toc-list a.active::before {
    height: 70%;
}

/* Mobile TOC styles moved to shared toc.css component */
/* Privacy-specific mobile TOC overrides only below */

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    /* TOC is hidden on mobile via d-none d-lg-block classes */
    .privacy-toc {
        display: none !important;
    }
    
    .privacy-content h2 {
        padding: 1rem 1.5rem;
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Tablet view - simplified table */
@media (min-width: 768px) and (max-width: 991px) {
    .privacy-content table {
        font-size: 0.9rem;
    }
    
    .privacy-content table th,
    .privacy-content table td {
        padding: 0.875rem 1.25rem;
    }
    
    .privacy-content table td:first-child {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .privacy-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .privacy-content h2 {
        font-size: 1.3rem;
        padding: 0.875rem 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }
    
    /* Improve readability on small screens */
    .privacy-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Transform table to cards on mobile */
    .privacy-content table {
        display: block;
        background: transparent;
        border: none;
    }
    
    .privacy-content table thead {
        display: none;
    }
    
    .privacy-content table tbody {
        display: block;
    }
    
    .privacy-content table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(40, 40, 40, 0.9) 100%);
        border: 1px solid rgba(198, 156, 63, 0.3);
        border-left: 3px solid var(--gold);
        border-radius: 8px;
        padding: 1.25rem;
        transform: none;
        position: relative;
        overflow: hidden;
    }
    
    .privacy-content table tbody tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
        opacity: 0.5;
    }
    
    .privacy-content table tbody tr:hover {
        transform: none;
        background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(26, 26, 26, 0.9) 100%);
        box-shadow: 0 6px 20px rgba(198, 156, 63, 0.25);
        border-left-width: 4px;
    }
    
    .privacy-content table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
        position: relative;
    }
    
    /* Add labels for mobile */
    .privacy-content table td:first-child {
        font-weight: 600;
        color: var(--gold);
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.75rem;
        padding-left: 1.75rem;
        border-bottom: 1px solid rgba(198, 156, 63, 0.2);
        position: relative;
    }
    
    .privacy-content table td:first-child::before {
        content: '🗂️';
        position: absolute;
        left: 0;
        top: 0.5rem;
        font-size: 1.1rem;
    }
    
    .privacy-content table td:last-child::before {
        content: 'Retention: ';
        font-weight: 600;
        color: rgba(198, 156, 63, 0.8);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .privacy-content table td:last-child {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .privacy-content ul li {
        margin-bottom: 0.75rem;
    }
    
    /* Reduce spacing for better mobile experience */
    .privacy-content h2:not(:first-of-type) {
        margin-top: 2.5rem;
    }
    
    .privacy-content h2:not(:first-of-type)::after {
        top: -1.25rem;
    }
    
}

/* Print Styles */
@media print {
    .privacy-toc {
        display: none;
    }
    
    .privacy-content h2 {
        page-break-before: auto;
        page-break-after: avoid;
    }
    
    .privacy-content table {
        page-break-inside: avoid;
    }
}