/* ===========================
   Privacy Policy Page - Sophisticated Design
   =========================== */

/* Hero Section Override */
.hero.hero-small {
    min-height: auto;
    padding: calc(72px + 4rem) var(--space-lg) 4rem;
    margin-top: 0;
}

.hero-small .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Main Layout */
.privacy-main {
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
    min-height: 60vh;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Sidebar Navigation */
.privacy-sidebar {
    position: sticky;
    top: calc(72px + 2rem);
}

.privacy-nav {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.privacy-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-group:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.privacy-nav .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.4;
}

.privacy-nav .nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-secondary);
}

.privacy-nav .nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.privacy-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

/* Content Area */
.privacy-content {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.content-header {
    margin-bottom: 2rem;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Privacy Sections */
.privacy-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    position: relative;
    padding-bottom: 0.75rem;
}

.privacy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

/* Info Cards */
.info-card {
    display: flex;
    gap: 1.5rem;
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
}

.card-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Important Notice */
.important-notice {
    display: flex;
    gap: 1rem;
    background: var(--surface-elevated);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.notice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.notice-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Lists */
.styled-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

ol.styled-list {
    counter-reset: privacy-counter;
    list-style: none;
}

ol.styled-list li {
    counter-increment: privacy-counter;
}

ol.styled-list li::before {
    content: counter(privacy-counter);
    width: 24px;
    height: 24px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0.25em;
}

/* Disclosure Items */
.disclosure-item {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.disclosure-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.disclosure-item p {
    margin: 0;
}

/* Contact Card */
.contact-card {
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0;
    color: white;
    opacity: 0.9;
}

.contact-card a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: none;
}

/* Text Links */
.text-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.text-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-sidebar {
        position: static;
    }
    
    .privacy-nav {
        margin-bottom: 2rem;
    }
    
    .privacy-nav .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-group {
        flex: 1;
        min-width: 180px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .privacy-nav .nav-link {
        text-align: left;
        padding: 0.4rem 0.6rem;
    }
    
    .privacy-nav .nav-link.active::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-small .hero-title {
        font-size: 2.5rem;
    }
    
    .privacy-content {
        padding: 2rem 1.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.75rem;
    }
    
    .info-card {
        flex-direction: column;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .privacy-nav {
        padding: 1.5rem;
    }
    
    .privacy-nav .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-group {
        min-width: auto;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-group:last-child {
        border-bottom: none;
    }
}

/* Theme-specific adjustments */
[data-theme="dark"] .privacy-nav,
[data-theme="dark"] .privacy-content,
[data-theme="dark"] .info-card,
[data-theme="dark"] .disclosure-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .info-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .privacy-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .important-notice {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="light"] .privacy-nav,
[data-theme="light"] .privacy-content {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .info-card,
[data-theme="light"] .disclosure-item {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .info-card:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .privacy-nav .nav-link:hover {
    background: #f8f9fa;
}

[data-theme="light"] .important-notice {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .privacy-sidebar {
        display: none;
    }
    
    .privacy-layout {
        display: block;
    }
    
    .privacy-content {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .privacy-section {
        page-break-inside: avoid;
    }
}