/**
 * Privacy Policy Page Styles
 *
 * FILE LOCATION: /includes/css/pages/privacy.css
 * UPDATED: January 11, 2026 - v7: Match About/Contact background sizing + glass + per-section transparency
 */

/* =============================================================================
   STICKY / FIXED HEADER SUPPORT
   ============================================================================= */

/* Your About/Contact styles use fixed header patterns; keep this aligned */
.navbar,
header,
.site-header,
nav[role="navigation"] {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Bootstrap navbar z-index */
    width: 100%;
}

/* Prevent content from hiding behind header */
body {
    padding-top: 56px; /* Typical Bootstrap navbar height */
}

/* =============================================================================
   PAGE LAYOUT VARIABLES (MATCH ABOUT/CONTACT)
   ============================================================================= */

:root {
    --tb-header-h: 56px;  /* keep in sync with header */
    --tb-footer-h: 80px;  /* keep in sync with footer */

    /* Background behavior */
    --tb-privacy-bg-position: center center;
    --tb-privacy-bg-size: cover;
    --tb-privacy-bg-opacity: 1;
    --tb-privacy-bg-blur: 2px;

    /* Overlay behavior */
    --tb-privacy-overlay-strength: 0.12;
    --tb-privacy-left-fade: 0.42;

    /* Card system */
    --tb-card-border: rgba(255, 255, 255, 0.60);

    /* Default (most sections) */
    --tb-card-bg: rgba(255, 255, 255, 0.72);

    /* Per-section variants (to mimic About/Contact control) */
    --tb-card-intro-bg:   rgba(255, 255, 255, 0.30); /* MORE transparent like About "story" */
    --tb-card-rights-bg:  rgba(248, 249, 250, 0.74);
    --tb-card-contact-bg: rgba(248, 249, 250, 0.74);

    /* Alert */
    --tb-alert-info-bg: rgba(207, 226, 243, 0.92);
}

/* =============================================================================
   FIXED FOOTER + SCROLLABLE CONTENT AREA (MATCH YOUR NEW ABOUT/CONTACT BEHAVIOR)
   ============================================================================= */

html, body {
    height: 100%;
}

body {
    overflow: hidden;
}

footer,
.site-footer,
.footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    min-height: var(--tb-footer-h);
}

/* =============================================================================
   MAIN PAGE WRAPPER
   ============================================================================= */

.privacy-page {
    background-color: #f8f9fa;

    /* Background image path (cache bust) */
    --tb-privacy-bg-url: url("/assets/images/backgrounds/privacy_background.png?v=20260111_v7");

    /* Background tuning */
    --tb-privacy-bg-blur: 2px;
    --tb-privacy-bg-opacity: 1;
    --tb-privacy-bg-size: cover;
    --tb-privacy-bg-position: center center;

    /* Overlay tuning */
    --tb-privacy-overlay-strength: 0.12;
    --tb-privacy-left-fade: 0.42;

    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    isolation: isolate;
    min-height: auto;

    /* Use wrapper padding like About/Contact */
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Fixed background layer */
.privacy-page::before {
    content: "";
    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);
    z-index: -3;

    background-image: var(--tb-privacy-bg-url);
    background-repeat: no-repeat;
    background-size: var(--tb-privacy-bg-size) !important;
    background-position: var(--tb-privacy-bg-position) !important;

    filter: blur(var(--tb-privacy-bg-blur)) saturate(0.88) contrast(0.90) brightness(1.06);
    opacity: var(--tb-privacy-bg-opacity);

    pointer-events: none;
}

/* Fixed overlay layer */
.privacy-page::after {
    content: "";
    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);
    z-index: -2;

    background:
        linear-gradient(90deg,
            rgba(246,236,222,var(--tb-privacy-left-fade)) 0%,
            rgba(246,236,222,0.22) 22%,
            rgba(246,236,222,0.08) 44%,
            rgba(246,236,222,0.00) 65%),
        linear-gradient(180deg,
            rgba(248,242,234,0.60) 0%,
            rgba(248,242,234,0.20) 40%,
            rgba(248,242,234,0.10) 70%,
            rgba(248,242,234,0.00) 100%),
        rgba(246,236,222,var(--tb-privacy-overlay-strength));

    pointer-events: none;
}

.privacy-page .container {
    position: relative;
}

/* =============================================================================
   TYPOGRAPHY (MATCH ABOUT/CONTACT)
   ============================================================================= */

.privacy-page__title {
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #212529;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.privacy-page .privacy-card .h4,
.privacy-page .privacy-card h2.h4 {
    font-weight: 750;
    color: #1f2a37;
    margin-bottom: 0.5rem;
}

.privacy-page .privacy-card p,
.privacy-page .privacy-card li {
    color: #2b3643;
    line-height: 1.55;
}

/* =============================================================================
   ALERT (SOFTENED, READABLE)
   ============================================================================= */

.privacy-page .privacy-alert.alert-info {
    background-color: var(--tb-alert-info-bg) !important;
    border-color: rgba(207, 226, 243, 0.95) !important;
}

/* =============================================================================
   GLASS CARDS (BASE + VARIANTS)
   ============================================================================= */

.privacy-card {
    background: var(--tb-card-bg) !important;
    border: 1px solid var(--tb-card-border) !important;
    border-radius: 0.75rem;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.privacy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* Per-section variants */
.privacy-card--intro {
    background: var(--tb-card-intro-bg) !important;
}

.privacy-card--rights {
    background: var(--tb-card-rights-bg) !important;
}

.privacy-card--contact {
    background: var(--tb-card-contact-bg) !important;
}

/* Override Bootstrap .bg-light so it doesn't become a solid block */
.privacy-page .privacy-card.bg-light {
    background: var(--tb-card-rights-bg) !important;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 991.98px) {
    body {
        padding-top: 56px;
    }
    .privacy-page {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    /* Slightly more opaque on mobile for readability */
    :root {
        --tb-card-bg: rgba(255, 255, 255, 0.82);
        --tb-card-intro-bg: rgba(255, 255, 255, 0.72);
    }
}

@media (max-width: 575.98px) {
    .privacy-page__title {
        font-size: 1.9rem;
    }
    .privacy-card {
        border-radius: 0.65rem;
    }
}
