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

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

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.1);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #d1fae5;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.effective-date, .version {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Main Content Layout */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

.content-wrapper {
    flex: 1;
}

.content {
    max-width: 800px;
}

/* Navigation Sidebar */
.sidebar-nav {
    width: 280px;
    position: sticky;
    top: 2rem;
    height: fit-content;
    background-color: #f0fdfa;
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.1);
}

.nav-header h3 {
    color: #059669;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #059669;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    display: block;
    color: #047857;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-list a:hover {
    background-color: #059669;
    color: white;
    transform: translateX(5px);
}

.nav-list a.active {
    background-color: #059669;
    color: white;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

/* Section Styles */
section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

section h2 {
    color: #059669;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #059669;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #10b981;
}

section h3 {
    color: #047857;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

section h4 {
    color: #065f46;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

section h5 {
    color: #059669;
    font-size: 1.1rem;
    margin: 0.75rem 0 0.5rem 0;
    font-weight: 600;
}

/* Introduction Section */
.intro {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #059669;
    margin-bottom: 2rem;
}

.intro p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid #f59e0b;
}

.highlight-box p {
    margin: 0;
    color: #92400e;
}

.purpose-box {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #059669;
}

.purpose-box strong {
    color: #059669;
}

.no-collect-box {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 5px solid #dc2626;
}

.no-collect-box ul {
    margin-bottom: 1rem;
}

.no-collect-box p {
    margin: 0;
    color: #991b1b;
    font-weight: 600;
}

.security-highlight {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.security-highlight p {
    margin: 0;
    color: #1e40af;
    font-size: 1.1rem;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-box {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid;
}

.info-box.success {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.info-box.warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
}

.info-box h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.info-box.success h5 {
    color: #16a34a;
}

.info-box.warning h5 {
    color: #d97706;
}

/* Purpose Grid */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item {
    background-color: #f0fdfa;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purpose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.1);
}

.purpose-item h4 {
    color: #059669;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Security Features */
.security-features {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.security-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #059669;
}

.security-item h4 {
    color: #059669;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Rights, Security, Storage, Changes, Contact Sections */
.rights-section, .security-section, .storage-section, .changes-section, .contact-section {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #059669;
}

.rights-section h3, .security-section h3, .storage-section h3, .changes-section h3, .contact-section h3 {
    color: #059669;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Commitment Items */
.commitment-item {
    background-color: #f0fdfa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #10b981;
}

.commitment-item h4 {
    color: #059669;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Final Note */
.final-note {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.final-commitment p {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Typography */
p {
    margin-bottom: 1rem;
    text-align: justify;
}

ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #059669;
    font-size: 0.9em;
}

a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #047857;
    text-decoration: underline;
}

strong {
    color: #065f46;
    font-weight: 600;
}

/* Subsections */
.subsection {
    margin: 2rem 0;
    padding-left: 1rem;
    border-left: 2px solid #a7f3d0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        padding: 1rem;
    }
    
    .sidebar-nav {
        width: 100%;
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-list li {
        margin-bottom: 0;
    }
    
    .content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .purpose-grid {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .intro, .highlight-box, .purpose-box, .no-collect-box, .security-highlight, .info-box, .security-item, .rights-section, .security-section, .storage-section, .changes-section, .contact-section, .commitment-item, .final-note {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-list a {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .sidebar-nav {
        display: none;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .content {
        max-width: 100%;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}