/* Privacy Policy Page Styles (MERGED Global + Specific with Dark Mode) */
/* Save as: pages/privacy-policy/style.css (or your chosen path) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Mode Default Variables */
    --primary-color: #1e3c72;
    --primary-color-rgb: 30, 60, 114;
    --secondary-color: #2a5298;
    --accent-color: #ffc107;
    --accent-color-rgb: 255, 193, 7;
    --text-light: white;
    --text-dark: #333;
    --text-muted: #555;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    --page-bg: #f0f2f5;
    --card-bg: #ffffff; /* For main content areas like .privacy-policy-main */
    --card-shadow: 0 4px 12px rgba(0,0,0,0.07);
    --border-color: #ccc; 
    --input-bg: #ffffff; 
    --input-focus-border-color: var(--primary-color);
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
    --light-bg: #f8f9fa; 
    /* --important-note-bg: #e9ecef; Removed, will use --light-bg or specific if needed */
    /* --important-note-border: #ced4da; Removed */
    /* --important-note-text: #343a40; Removed */
    --disclaimer-bg: #fff3cd;
    --disclaimer-border: #ffeeba;
    --disclaimer-text: #856404;


    --footer-bg: #0f0f0f;
    --footer-text: #adb5bd;
    --footer-text-light: #ced4da;
    --footer-title: #ffffff;
    --footer-bottom-bg: #000000;
    
    --header-height: 70px;
    --header-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --header-text-color: var(--text-light);
    --header-icon-color: var(--text-light);
    --header-btn-bg: var(--accent-color);
    --header-btn-text: var(--primary-color);
    --header-btn-hover-bg: #e0a800; 

    --theme-switch-track-bg-off: #ccc; 
    --theme-switch-track-shadow-off: inset 1px 1px 2px rgba(0,0,0,0.1);
    --theme-switch-track-bg-on: var(--accent-color);
    --theme-switch-track-shadow-on: 0 0 5px color-mix(in srgb, var(--accent-color) 70%, transparent);
    --theme-switch-thumb-bg: white;
    --theme-switch-thumb-shadow: 0px 1px 3px rgba(0,0,0,0.3);
    --theme-switch-icon-color-off: color-mix(in srgb, var(--primary-color) 80%, black); 
    --theme-switch-icon-color-on: var(--header-btn-text); 
    --theme-transition-duration: 0.3s;
}

body.dark-mode {
    /* Dark Mode Variable Overrides */
    --primary-color: #4f8dff; 
    --primary-color-rgb: 79, 141, 255;
    --secondary-color: #6faaff; 
    --accent-color: #f5b041; 
    --accent-color-rgb: 245, 176, 65;
    --text-light: #1a1a1a;
    --text-dark: #e0e0e0;
    --text-muted: #a0a0a0;
    
    --page-bg: #121212; 
    --card-bg: #1e1e1e; 
    --card-shadow: 0 4px 15px rgba(0,0,0,0.2);
    --border-color: #444;
    --input-bg: #2c2c2c;
    --input-focus-border-color: var(--accent-color);
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb), 0.25);
    --light-bg: #2c2c2c;
    /* --important-note-bg: #2a2a2a;  Will use --light-bg for important-note in dark mode */
    /* --important-note-border: #3a3a3a; Will use --border-color for important-note in dark mode */
    /* --important-note-text: var(--text-muted); Will use --text-muted */
    --disclaimer-bg: color-mix(in srgb, #856404 20%, #00000080); 
    --disclaimer-border: color-mix(in srgb, #ffeeba 30%, #00000080);
    --disclaimer-text: #fff3cd; 


    --header-bg: linear-gradient(135deg, #1a1a1a, #2c2c2c); 
    --header-text-color: #e0e0e0;
    --header-icon-color: #e0e0e0;
    --header-btn-bg: var(--accent-color);
    --header-btn-text: #121212;
    --header-btn-hover-bg: #d99830; 

    --theme-switch-track-bg-off: #444; 
    --theme-switch-track-shadow-off: inset 1px 1px 2px rgba(0,0,0,0.3); 
    --theme-switch-track-bg-on: var(--accent-color); 
    --theme-switch-track-shadow-on: 0 0 8px color-mix(in srgb, var(--accent-color) 50%, transparent);
    --theme-switch-thumb-bg: #2c2c2c; 
    --theme-switch-thumb-shadow: 0px 1px 3px rgba(0,0,0,0.5); 
    --theme-switch-icon-color-off: var(--accent-color); 
    --theme-switch-icon-color-on: var(--header-btn-text); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color var(--theme-transition-duration) ease, 
                color var(--theme-transition-duration) ease, 
                border-color var(--theme-transition-duration) ease,
                box-shadow var(--theme-transition-duration) ease;
}
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page-bg); 
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    color: var(--text-dark); 
}
body.menu-open { overflow-y: hidden; }

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Header */
header {
    background: var(--header-bg);
    color: var(--header-text-color);
    padding: 0 20px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}
.logo { font-size: 28px; font-weight: bold; letter-spacing: 1px; display: flex; align-items: center; }
.logo i { margin-right: 10px; font-size: inherit; color: var(--header-icon-color); }
.logo-link { color: var(--header-text-color); text-decoration: none; font-weight: bold; }

.header-right-controls { display: none; align-items: center; gap: 10px; } 
.desktop-nav { display: flex; gap: 15px; align-items: center; } 
.desktop-nav a { color: var(--header-text-color); text-decoration: none; font-size: 16px; transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out; font-weight: 500; padding: 5px 0; display: inline-flex; align-items: center; gap: 6px; }
.desktop-nav a:hover { color: var(--accent-color); text-decoration: underline; }
.desktop-nav a.active { color: var(--accent-color); }
.desktop-nav a.btn { background-color: var(--header-btn-bg); color: var(--header-btn-text) !important; padding: 8px 15px; border-radius: 5px; font-weight: bold; text-decoration: none; }
.desktop-nav a.btn:hover { background-color: var(--header-btn-hover-bg); color: var(--header-btn-text) !important; text-decoration: none; }

/* Theme Switch */
.theme-switch { position: relative; display: inline-block; width: 50px; height: 26px; align-self: center; }
.desktop-nav-theme-toggle { margin-right: 5px; margin-left: 0; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--theme-switch-track-bg-off); box-shadow: var(--theme-switch-track-shadow-off); transition: background-color var(--theme-transition-duration), box-shadow var(--theme-transition-duration); }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: var(--theme-switch-thumb-bg); box-shadow: var(--theme-switch-thumb-shadow); transition: transform var(--theme-transition-duration), background-color var(--theme-transition-duration), box-shadow var(--theme-transition-duration), color var(--theme-transition-duration); display: flex; align-items: center; justify-content: center; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; content: "\f186"; color: var(--theme-switch-icon-color-off); }
input:checked + .slider { background-color: var(--theme-switch-track-bg-on); box-shadow: var(--theme-switch-track-shadow-on); }
input:checked + .slider:before { transform: translateX(24px); content: "\f185"; color: var(--theme-switch-icon-color-on); }
.slider.round { border-radius: 26px; } .slider.round:before { border-radius: 50%; }

/* Menu Icon for Mobile */
.menu-icon { font-size: 28px; cursor: pointer; display: none; color: var(--header-icon-color); background: transparent; border: none; padding: 10px; }
.menu-icon i { color: var(--header-icon-color); font-size: 24px; display: block; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -280px; width: 280px; max-width: 90%; height: 100vh; background: var(--primary-color); transition: right 0.4s ease-in-out, background-color var(--theme-transition-duration) ease; padding: 20px; z-index: 1001; box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2); overflow-y: auto; box-sizing: border-box; }
body.dark-mode .mobile-menu { background: #1f2937; }
.mobile-menu.show { right: 0; }
.mobile-menu .close-btn { font-size: 24px; cursor: pointer; color: var(--header-text-color); background: transparent; border: none; padding: 0; display: block; text-align: right; margin-bottom: 10px; }
.mobile-menu .menu-links { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.mobile-menu a { color: var(--header-text-color); text-decoration: none; font-size: 18px; padding: 10px 0; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s ease; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent-color); }
.mobile-menu a.btn { background-color: var(--header-btn-bg); color: var(--header-btn-text) !important; padding: 10px 15px; border-radius: 5px; text-align: center; font-weight: bold; justify-content: center; }
.mobile-menu a.btn:hover { background-color: var(--header-btn-hover-bg); }
.mobile-menu hr { width: 100%; border: 0; border-top: 0.5px solid rgba(255, 255, 255, 0.2); margin: 15px 0; }
body.dark-mode .mobile-menu hr { border-top-color: rgba(229, 231, 235, 0.2); }
.mobile-menu .social-icons-horizontal { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 20px; }
.mobile-menu .social-icons-horizontal a { color: var(--header-text-color); font-size: 22px; transition: color 0.3s ease-in-out; padding: 0; }
.mobile-menu .social-icons-horizontal a:hover { color: var(--accent-color); }

.content-wrapper { flex-grow: 1; }


/* ==========================================================================
   Privacy Policy Page Specific Styles
   ========================================================================== */
.privacy-policy-main {
    background-color: var(--card-bg); /* UPDATED */
    flex-grow: 1;
}
.privacy-policy-main .container {
    max-width: 900px;
}

.privacy-hero {
    background: var(--header-bg); 
    color: var(--header-text-color);
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 30px;
}
.privacy-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit; 
}
.privacy-hero .last-updated {
    font-size: 15px;
    opacity: 0.8;
    color: inherit; 
}

.privacy-content {
    padding: 20px 0 50px; 
}
.privacy-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color); /* UPDATED */
    padding-bottom: 10px;
}
.privacy-content h2:first-of-type { margin-top: 0; }
.privacy-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}
.privacy-content h4 {
    font-size: 17px;
    color: var(--text-dark); 
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 500;
}
.privacy-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}
.privacy-content ul { list-style: disc; margin-left: 25px; margin-bottom: 15px; padding-left: 10px; }
.privacy-content ul li { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.privacy-content ul ul { list-style: circle; margin-top: 8px; margin-bottom: 8px; }
.privacy-content a { color: var(--secondary-color); text-decoration: underline; transition: color 0.3s ease; }
.privacy-content a:hover { color: var(--primary-color); }
.privacy-content strong { color: var(--text-dark); font-weight: 600; }

.important-disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--disclaimer-bg); 
    border: 1px solid var(--disclaimer-border); 
    color: var(--disclaimer-text); 
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.6;
}
.important-disclaimer strong {
    color: var(--disclaimer-text); 
}

.contact-agent-address { 
    font-style: normal;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    line-height: 1.6;
    color: var(--text-dark); /* Added for consistency */
}
.contact-agent-address strong { color: var(--primary-color); }
.contact-agent-address .placeholder-text { font-style: italic; color: var(--text-muted); font-size: 0.9em; }


/* Footer Styles */
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); padding-top: 50px; font-size: 14px; line-height: 1.6; margin-top: auto; }
.footer-main-container { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.footer-column.about-column { flex: 1 1 30%; min-width: 250px; text-align: left; }
.footer-column.about-column .footer-site-description { margin-bottom: 20px; color: var(--footer-text-light); max-width: 100%; }
.footer-column.about-column .footer-social-icons { justify-content: flex-start; }
.footer-links-group { flex: 2 1 65%; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-column { flex: 1; min-width: 180px; }
.footer-links-group .links-column { min-width: 160px; }
.footer-site-name { font-size: 28px; font-weight: 700; color: var(--footer-title); margin-bottom: 15px; }
.footer-column-title { font-size: 18px; font-weight: 600; color: var(--footer-title); margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: var(--footer-text); text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-column ul li a:hover { color: var(--footer-title); padding-left: 5px; }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.footer-social-icons a { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border-radius: 50%; background-color: #343a40; color: var(--footer-title); font-size: 16px; text-decoration: none; transition: background-color 0.3s ease, transform 0.3s ease; }
.footer-social-icons a:hover { background-color: var(--accent-color); color: var(--primary-color); transform: scale(1.1); }
.footer-bottom { background-color: var(--footer-bottom-bg); padding: 20px 0; border-top: 1px solid #2c2c2c; }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-buy-code-btn { background-color: var(--accent-color); color: var(--primary-color) !important; padding: 8px 15px; border-radius: 5px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.3s ease, color 0.3s ease; border: none; }
.footer-buy-code-btn:hover { background-color: var(--header-btn-hover-bg); color: var(--primary-color) !important; text-decoration: none; }
.copyright-text { font-size: 15px; color: var(--footer-text); margin: 0; text-align: right; flex-grow: 1; }
.copyright-text a, .copyright-text strong { color: var(--accent-color); text-decoration: none; }
.copyright-text a:hover { text-decoration: underline; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-main-container { flex-direction: column; align-items: center; }
    .footer-column.about-column { text-align:center; }
    .footer-column.about-column .footer-social-icons { justify-content: center; }
    .footer-links-group { width: 100%; justify-content: space-around; }
    .footer-links-group .footer-column.links-column { flex-basis: calc(45% - 15px); }
    .desktop-nav .desktop-nav-theme-toggle { margin-right: 10px; } 
}

@media (max-width: 768px) {
    body { padding-top: 60px; --header-height: 60px; }
    header { height: var(--header-height); padding: 0 15px; }
    .logo { font-size: 26px; } .logo i { margin-right: 8px; }
    .menu-icon { display: flex; align-items: center; }
    .desktop-nav { display: none; }
    .header-right-controls { display: flex; } 
    .mobile-header-theme-toggle { display: inline-block; } 

    .footer-main-container { align-items: flex-start; gap: 20px; margin-bottom: 30px; }
    .footer-column.about-column { text-align: left; min-width: unset; }
    .footer-column.about-column .footer-site-description { font-size: 16px; }
    .footer-column.about-column .footer-social-icons { justify-content: flex-start; }
    .footer-links-group { flex-basis: 100%; justify-content: space-between; gap: 15px; }
    .footer-links-group .footer-column.links-column { flex-basis: calc(50% - 10px); min-width: 150px; }
    .footer-column ul li a { font-size: 16px; }
    .footer-bottom-container { flex-direction: column; align-items: center; text-align: center; gap: 10px;}
    .footer-buy-code-btn { margin-bottom: 10px; font-size: 16px; }
    .copyright-text { text-align: center; font-size: 15px; }

    .privacy-hero h1 { font-size: 28px; }
    .privacy-content h2 { font-size: 22px; }
    .privacy-content h3 { font-size: 18px; }
    .privacy-content p, .privacy-content ul li { font-size: 15px; }
    .privacy-policy-main .container { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 480px) {
    .logo { font-size: 24px; } .logo i { margin-right: 6px; }
    .container { padding-left: 15px; padding-right: 15px; } 
    .site-footer { font-size: 15px; padding-top: 30px; }
    .footer-site-name { font-size: 25px; }
    .footer-column-title { font-size: 18px; }
    .footer-column.about-column .footer-site-description { font-size: 15px; }
    .footer-column ul li a { font-size: 15px; }
    .footer-links-group { gap: 10px; }
    .footer-links-group .footer-column.links-column { flex-basis: calc(50% - 5px); min-width: auto; }
    .footer-buy-code-btn { font-size: 15px; padding: 6px 12px; }
    .copyright-text { font-size: 14px; }

    .privacy-hero h1 { font-size: 24px; }
    .privacy-hero .last-updated { font-size: 14px; }
    .privacy-content h2 { font-size: 20px; }
    .privacy-content h3 { font-size: 17px; }
}

@media (min-width: 769px) and (max-width: 992px) {
    .footer-main-container { flex-direction: column; align-items: center; }
    .footer-column.about-column { flex-basis: 100%; text-align:center; min-width: unset; }
    .footer-column.about-column .footer-social-icons { justify-content: center; }
    .footer-links-group { width: 100%; justify-content: space-around; }
    .footer-links-group .footer-column.links-column { flex-basis: auto; min-width: 160px; text-align: left; }
}