/* Privacy Policy Page Styles */

/* Prevent horizontal overflow on privacy page */
body:has(.privacy-content-section) {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Mobile-specific: Force immediate visibility - must be before main media query */
@media (max-width: 768px) {
    /* Override JavaScript inline styles - target any element with opacity in style attribute */
    [style*="opacity"] {
        opacity: 1 !important;
    }

    [style*="transform"] {
        transform: none !important;
    }

    /* Specifically target privacy sections */
    .privacy-section[style],
    .privacy-section {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: block !important;
    }

    /* Ensure main content is visible */
    .privacy-main-content,
    .privacy-main-content[style] {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Privacy Hero Section */
.privacy-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.privacy-hero-content {
    position: relative;
    z-index: 1;
}

.privacy-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.privacy-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.privacy-hero-description {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.privacy-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.meta-item svg {
    width: 18px;
    height: 18px;
}

/* Privacy Content Section */
.privacy-content-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, var(--white) 20%);
    width: 100%;
    overflow-x: hidden;
}

.privacy-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sidebar Navigation */
.privacy-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-sticky {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.privacy-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding-left: 2.75rem;
}

.nav-link.active::before {
    background: var(--primary-color);
    width: 8px;
    height: 8px;
    left: 0.5rem;
}

/* Main Content */
.privacy-main-content {
    background: var(--white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.privacy-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    scroll-margin-top: 120px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.privacy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.section-number {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
    z-index: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
    padding-left: 4rem;
}

.section-content {
    position: relative;
    z-index: 1;
    padding-left: 4rem;
}

.section-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
}

.subsection-title:first-child {
    margin-top: 0;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.privacy-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

.privacy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.privacy-list li strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-box svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.highlight-box strong {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-box div {
    flex: 1;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-box svg {
    width: 24px;
    height: 24px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.warning-box strong {
    color: #ef4444;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box div {
    flex: 1;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-box {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.info-item {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.info-item strong {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Agreement Section */
.privacy-agreement {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.agreement-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.agreement-box svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.agreement-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.agreement-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Legal Information Section (Discrete) */
.legal-info-section {
    padding: 2rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.legal-info-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-info-summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    list-style: none;
    user-select: none;
    transition: all 0.3s ease;
}

.legal-info-summary::-webkit-details-marker {
    display: none;
}

.legal-info-summary::before {
    content: 'ℹ️ ';
    margin-right: 0.5rem;
}

.legal-info-summary:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.legal-info-details[open] .legal-info-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.legal-info-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.8;
}

.legal-info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.legal-info-item:last-child {
    border-bottom: none;
}

.legal-info-item strong {
    color: #4b5563;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .privacy-content-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 1.75rem;
        padding-left: 3rem;
    }

    .section-content {
        padding-left: 3rem;
    }

    .section-number {
        font-size: 5rem;
        top: -1rem;
    }
}

@media (max-width: 768px) {

    .privacy-hero {
        padding: 4rem 0 3rem;
        overflow-x: hidden;
        width: 100%;
    }

    .privacy-hero-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        opacity: 1 !important;
        transform: none !important;
    }

    .privacy-hero-title {
        font-size: 2.5rem;
    }

    .privacy-hero-description {
        font-size: 1.1rem;
    }

    .privacy-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .privacy-content-section {
        padding: 3rem 0;
        overflow-x: hidden;
        width: 100%;
        min-height: auto;
        display: block;
    }

    .privacy-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .privacy-sidebar {
        position: static;
        order: 2;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .sidebar-sticky {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .privacy-main-content {
        padding: 2rem 1.5rem;
        order: 1;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .privacy-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }

    /* Hide step numbers on mobile */
    .privacy-section .section-number {
        display: none !important;
    }

    .section-title {
        font-size: 1.5rem;
        padding-left: 0;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    .section-content {
        padding-left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        display: block;
        visibility: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-content p {
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .privacy-list li {
        font-size: 1rem;
    }

    .highlight-box,
    .warning-box {
        flex-direction: column;
        padding: 1.25rem;
    }

    .agreement-box {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .agreement-box svg {
        width: 40px;
        height: 40px;
    }

    .agreement-content h3 {
        font-size: 1.2rem;
    }

    /* Ensure container doesn't cause overflow */
    .privacy-content-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0 auto;
    }

    /* Ensure all content is visible */
    .privacy-section * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix any potential display issues */
    .privacy-main-content > * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Ensure all sections are visible - override JavaScript inline styles */
    .privacy-section {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: block !important;
    }

    /* Override any inline styles set by JavaScript */
    .privacy-section[style*="opacity"] {
        opacity: 1 !important;
    }

    .privacy-section[style*="transform"] {
        transform: none !important;
    }

    /* Reduce section gaps on mobile */
    .privacy-section {
        margin-bottom: 2.5rem !important;
        padding-bottom: 2rem !important;
    }

    /* Ensure section content is visible */
    .section-content,
    .section-title,
    .section-number {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* Override JavaScript inline styles for sections */
    .privacy-section[style] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Force immediate visibility on mobile - no animation delays */
    .privacy-main-content .privacy-section {
        animation: none !important;
        transition: none !important;
    }

    .legal-info-details {
        padding: 0 1rem;
    }

    .legal-info-summary {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .legal-info-content {
        padding: 1.25rem;
        font-size: 0.75rem;
    }
}

