/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-image {
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-text {
    background: linear-gradient(45deg, #fff, #e0f2fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo:hover .logo-image {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Privacy Policy Hero Section */
.privacy-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: clamp(120px, 20vh, 150px) 0 clamp(60px, 10vh, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.privacy-hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 25px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.last-updated i {
    color: #fbbf24;
}

/* Privacy Policy Content */
.privacy-content {
    padding: clamp(40px, 8vh, 80px) 0;
    background: #f8fafc;
    min-height: 100vh;
}

.policy-wrapper {
    display: grid;
    grid-template-columns: minmax(250px, 300px) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 120px;
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 4px solid #3b82f6;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.table-of-contents h3 {
    color: #1e293b;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
}

.table-of-contents a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.4;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: #1e40af;
    background: #eff6ff;
    border-left-color: #3b82f6;
    padding-left: 1.5rem;
}

/* Policy Content */
.policy-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.policy-section {
    padding: clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1e293b;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.policy-section h2 i {
    color: #3b82f6;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    flex-shrink: 0;
}

.policy-section h3 {
    color: #1e293b;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.policy-section p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
}

.policy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.policy-section li {
    color: #64748b;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.7;
}

.policy-section li::before {
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.policy-section strong {
    color: #1e293b;
    font-weight: 600;
}

/* Important Note Box */
.important-note {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.important-note i {
    color: #1e40af;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.important-note p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

/* Contact Info Box */
.contact-info-box {
    background: #f8fafc;
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method i {
    color: #3b82f6;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-top: 0.2rem;
    width: 20px;
    flex-shrink: 0;
}

.contact-method strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.3rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-method a {
    color: #3b82f6;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background: #0f172a;
    color: white;
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #3b82f6;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.footer-section p, 
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    display: block;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-section .translate:hover {
    color: #3b82f6;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

.footer-section a.active {
    color: #3b82f6;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #7c91ac;
}

.social-link:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.social-link:hover i {
    transform: scale(1.3);
    transition: all 0.2s ease;
}

.social-link:hover .fa-facebook-f { color: #0866ff; }
.social-link:hover .fa-youtube { color: #ff0033; }
.social-link:hover .fa-linkedin-in { color: #0073b2; }
.social-link:hover .fa-instagram { color: #f912a4; }
.social-link:hover .fa-whatsapp { color: #25d366; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: clamp(1rem, 3vw, 2rem);
    text-align: center;
    color: #64748b;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Enhanced Responsive Design */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .policy-wrapper {
        grid-template-columns: 350px 1fr;
        gap: 4rem;
    }
}

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .policy-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
    }
    
    .table-of-contents {
        padding: 1.8rem;
    }
    
    .policy-section {
        padding: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .policy-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .table-of-contents {
        padding: 1.5rem;
        top: 100px;
    }
    
    .policy-section {
        padding: 2rem;
    }
    
    .policy-section h2 {
        gap: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Small Tablets */
@media (max-width: 900px) {
    .logo-text {
        display: none;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape and Large Phones */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 64, 175, 0.98);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        order: 4;
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .privacy-hero {
        padding: 140px 0 70px;
    }

    .policy-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .table-of-contents {
        position: static;
        order: 2;
        margin-top: 2rem;
        max-height: none;
    }

    .policy-content {
        order: 1;
    }

    .policy-section {
        padding: 2rem 1.5rem;
    }

    .policy-section h2 {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }

    .contact-method i {
        align-self: center;
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Standard Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .privacy-hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .last-updated {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .policy-section {
        padding: 1.5rem 1rem;
    }

    .policy-section h2 {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .policy-section h2 i {
        font-size: 1.8rem;
    }

    .table-of-contents {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .table-of-contents a {
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }

    .contact-info-box {
        padding: 1.5rem 1rem;
    }

    .contact-method {
        padding: 1rem 0.8rem;
    }
    
    .important-note {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .important-note i {
        align-self: center;
        margin-top: 0;
    }
}

/* Very Small Mobile Phones */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .privacy-hero {
        padding: 110px 0 50px;
    }
    
    .logo {
        font-size: 1rem;
        gap: 8px;
    }
    
    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    .policy-section {
        padding: 1rem 0.8rem;
    }
    
    .table-of-contents {
        padding: 0.8rem;
    }
    
    .contact-info-box {
        padding: 1rem 0.8rem;
    }
}

/* Landscape Mobile Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .privacy-hero {
        padding: 100px 0 40px;
    }
    
    .privacy-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .privacy-hero .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.menu-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    header,
    footer,
    .table-of-contents,
    .menu-toggle {
        display: none !important;
    }

    .privacy-hero {
        background: none !important;
        color: black !important;
        padding: 2rem 0 !important;
    }

    .policy-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .policy-section {
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 1rem !important;
    }

    .policy-section h2 {
        color: black !important;
        page-break-after: avoid;
    }

    .important-note {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .contact-info-box {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }
}

/* Animation for smooth transitions */
.policy-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }
.policy-section:nth-child(5) { animation-delay: 0.5s; }
.policy-section:nth-child(6) { animation-delay: 0.6s; }
.policy-section:nth-child(7) { animation-delay: 0.7s; }
.policy-section:nth-child(8) { animation-delay: 0.8s; }
.policy-section:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
body.loading .policy-section {
    animation: none;
    opacity: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .policy-section h2 i {
        color: #0066cc !important;
    }
    
    .important-note {
        background: #fff !important;
        border: 2px solid #0066cc !important;
    }
    
    .table-of-contents a.active {
        background: #0066cc !important;
        color: white !important;
    }
    
    .nav-links a:hover {
        background: rgba(255,255,255,0.2) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .policy-section {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .logo:hover .logo-image {
        transform: none !important;
    }
    
    .nav-links a:hover {
        transform: none !important;
    }
}

/* Dark mode support (if user prefers dark color scheme) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e2e8f0;
        --bg-color: #0f172a;
        --card-bg: #1e293b;
    }
}

/* Utility classes for responsive behavior */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling offset for fixed header */
.policy-section {
    scroll-margin-top: 100px;
}

/* Improved touch targets for mobile */
@media (pointer: coarse) {
    .nav-links a,
    .table-of-contents a,
    .social-link,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .table-of-contents a {
        padding: 0.8rem 1rem;
    }
}