/* 
 * Privacy Page Custom Styles
 * Part of Baie Theme
 */

.bg-noise {
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-shimmer {
    animation: shimmer 2.5s linear infinite;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(226, 232, 240, 0.5);
    /* slate-200 with opacity */
    z-index: 50;
}

.scroll-progress-bar {
    width: 100%;
    background: #354351;
    /* brand-500 */
    height: 0%;
    transition: height 0.1s ease-out;
}

/* Typography & Content */
.prose p {
    margin-bottom: 1.5rem;
}

.prose ul li {
    margin-bottom: 0.75rem;
}

/* Smooth Scroll Padding */
section.scroll-mt-32 {
    scroll-margin-top: 8rem;
}

/* Print Styles for PDF Generation */
@media print {

    /* Hide non-content elements */
    header,
    footer,
    .sticky,
    nav,
    #privacy-nav,
    .scroll-progress-container,
    .bg-noise,
    .fixed,
    .absolute,
    .animate-pulse-slow,
    .animate-shimmer,
    a[download],
    button,
    .hidden,
    .nav-icon-container {
        display: none !important;
    }

    /* Reset body and layout */
    body,
    html {
        background: white !important;
        color: black !important;
        font-size: 11pt !important;
    }

    .container,
    div[class*="max-w-"] {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Target the main content column specifically */
    .lg\:col-span-8.lg\:col-start-5 {
        width: 100% !important;
        margin-left: 0 !important;
        column-count: 1 !important;
    }

    /* Reset colors and shadows */
    .bg-white,
    .bg-slate-50,
    .bg-brand-900 {
        background: transparent !important;
        color: black !important;
        border: none !important;
        box-shadow: none !important;
    }

    .text-white,
    .text-brand-100,
    .text-brand-300,
    .text-slate-600 {
        color: black !important;
    }

    /* Typography adjustments */
    h1,
    h2,
    h3 {
        color: black !important;
        page-break-after: avoid;
    }

    h1 {
        font-size: 24pt !important;
        margin-bottom: 20pt !important;
    }

    h2 {
        font-size: 18pt !important;
        margin-top: 20pt !important;
        margin-bottom: 15pt !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 5pt !important;
    }

    h3 {
        font-size: 14pt !important;
        margin-top: 15pt !important;
    }

    p,
    li {
        color: black !important;
        line-height: 1.5 !important;
    }

    section {
        page-break-inside: avoid;
        margin-bottom: 20pt !important;
        display: block !important;
    }

    /* Force visibility of critical labels but simple style */
    .bg-slate-50.p-6.rounded-2xl {
        border: 1px solid #ccc !important;
        margin-bottom: 20pt !important;
        padding: 15pt !important;
    }

    /* Header text cleanup for PDF */
    h1 br {
        display: none;
    }

    /* Document signature style for PDF */
    body::after {
        content: "Documento oficial de Política de Privacidad de Baie-Car.com - Generado digitalmente.";
        display: block;
        margin-top: 50pt;
        font-size: 9pt;
        color: #666;
        text-align: center;
        border-top: 1px solid #eee;
        padding-top: 10pt;
    }
}