/* ========================================
   PRIVACY POLICY PAGE - SPECIFIC STYLES
   ======================================== 
   
   This file contains styles ONLY for the Privacy Policy page.
   Global styles (navbar, footer, buttons, etc.) are in style.css
   
   ======================================== */

/* Page Container */
.privacy-policy-container {
    background: #011A38;
    min-height: 100vh;
    padding-top: 5rem; /* Account for fixed navbar */
}

/* Header Section */
.privacy-header {
    background: linear-gradient(135deg, #0a1929 0%, #011A38 50%, #0d2847 100%);
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.1;
}

.privacy-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #22d3ee;
    font-size: 0.95rem;
    font-weight: 500;
}

.last-updated i {
    width: 1.125rem;
    height: 1.125rem;
}

/* Main Content */
.privacy-content {
    padding: 3rem 0 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

/* Table of Contents */
.privacy-toc {
    position: sticky;
    top: 8rem;
    background: rgba(10, 39, 68, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    height: fit-content;
}

.privacy-toc h3 {
    color: #22d3ee;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-nav a:hover {
    color: #22d3ee;
    border-bottom-color: #22d3ee;
    padding-left: 0.5rem;
}

/* Main Content Area */
.privacy-main {
    color: #ffffff;
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 4rem;
    scroll-margin-top: 6rem; /* Account for fixed navbar */
}

.privacy-section:last-child {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #22d3ee;
    padding-bottom: 0.5rem;
    line-height: 1.2;
}

.privacy-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #22d3ee;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.privacy-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.privacy-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

/* Lists */
.privacy-section ul {
    margin: 1rem 0 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section li:last-child {
    margin-bottom: 0;
}

/* Special Content Blocks */

/* Use Categories Grid */
.use-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.use-category {
    background: rgba(10, 39, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.use-category:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.3);
}

.use-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #22d3ee;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.use-category h3 i {
    width: 1.25rem;
    height: 1.25rem;
}

.use-category ul {
    margin: 0;
    list-style-type: none;
}

.use-category li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.use-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #22d3ee;
    font-weight: bold;
}

/* Sharing List */
.sharing-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.sharing-item {
    background: rgba(10, 39, 68, 0.3);
    border-left: 4px solid #22d3ee;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.sharing-item h4 {
    color: #22d3ee;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
}

.sharing-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Security Measures */
.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.security-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(10, 39, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.security-item:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.3);
}

.security-item i {
    width: 3rem;
    height: 3rem;
    color: #22d3ee;
    margin-bottom: 1rem;
    stroke-width: 1.5;
}

.security-item h4 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
}

.security-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: rgba(10, 39, 68, 0.3);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.right-item:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.3);
}

.right-item h4 {
    color: #22d3ee;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.right-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cookie-type {
    background: rgba(10, 39, 68, 0.3);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border-left: 4px solid #22d3ee;
}

.cookie-type h4 {
    color: #22d3ee;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.cookie-type p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Details */
.contact-details {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(10, 39, 68, 0.3);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method i {
    width: 1.5rem;
    height: 1.5rem;
    color: #22d3ee;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-method h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-method p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-method a {
    color: #22d3ee;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: #ffffff;
}

/* Policy Updates */
.policy-updates {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.policy-updates h4 {
    color: #22d3ee;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
}

.policy-updates p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Mobile Logo Sizing - Reduce by 30% on mobile */
@media (max-width: 768px) {
    .logo img,
    .footer-logo-image {
        height: 28px !important; /* 30% smaller than 40px */
        width: auto;
    }
}

/* ========================================
   INLINE SEARCH BAR (Expandable)
   ======================================== */
.inline-search-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.inline-search-input {
    width: 0;
    opacity: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.inline-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Search icon button */
.search-icon-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.search-icon-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s ease;
}

.search-icon-btn:hover i {
    color: #22d3ee;
}

/* EXPANDED STATE */
.inline-search-container.expanded .inline-search-input {
    width: 180px;
    opacity: 1;
    border-bottom-color: #22d3ee;
    padding-right: 0.5rem;
    pointer-events: auto;
    margin-right: 0.5rem;
}

.inline-search-container.expanded .search-icon-btn {
    transform: translateX(-10px);
}

.inline-search-container.expanded .search-icon-btn i {
    color: #22d3ee;
}

/* ========================================
   SEARCH EXPANDED STATE - Fade out nav items
   ======================================== */

/* When search is expanded, fade out all nav links */
.nav-links.search-active > a,
.nav-links.search-active > .spacer,
.nav-links.search-active > .btn-get-started {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the search container visible */
.nav-links.search-active .inline-search-container {
    opacity: 1;
    pointer-events: auto;
}

/* Make search bar wider when nav items are hidden */
.nav-links.search-active .inline-search-container.expanded .inline-search-input {
    width: 320px;
}

/* Smooth transition for nav links when NOT in search mode */
.nav-links > a,
.nav-links > .spacer,
.nav-links > .btn-get-started {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-toc {
        position: static;
        order: -1;
        background: rgba(10, 39, 68, 0.6);
        border-radius: 0.75rem;
        padding: 1.5rem;
    }
    
    .toc-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .toc-nav a {
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.375rem;
        text-align: center;
        border-bottom: none;
    }
    
    .toc-nav a:hover {
        background: rgba(34, 211, 238, 0.1);
        padding-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .privacy-header {
        padding: 3rem 0 2rem 0;
    }
    
    .privacy-title {
        font-size: 2.5rem;
    }
    
    .privacy-subtitle {
        font-size: 1.125rem;
    }
    
    .content-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.75rem;
    }
    
    .privacy-section h3 {
        font-size: 1.25rem;
    }
    
    .use-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .security-measures {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .rights-grid {
        grid-template-columns: repeat(auto-fit, minItems(150px, 1fr));
    }
    
    .privacy-toc h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .toc-nav {
        grid-template-columns: 1fr;
    }
    
    /* Mobile: Hide inline search, use mobile menu search instead */
    .inline-search-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .privacy-title {
        font-size: 2rem;
    }
    
    .privacy-subtitle {
        font-size: 1rem;
    }
    
    .security-measures {
        grid-template-columns: 1fr;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .use-category,
    .security-item,
    .right-item {
        padding: 1.25rem;
    }
}