/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    background: #2A3042;
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: #3498db;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Main Content */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 4rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 2rem;
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin: 0 auto;
    border-radius: 2px;
}

/* Policy Sections */
.policy-section {
    margin-bottom: 4rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.policy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    min-width: 200px;
}

.section-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-left: auto;
}

/* Section Content */
.section-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #34495e;
}

.english-text {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 2rem !important;
    padding-left: 1rem;
    border-left: 3px solid #ecf0f1;
}

/* Data Types */
.data-types {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.data-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.data-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.data-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.data-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.data-details .english {
    color: #7f8c8d;
    font-weight: 400;
    font-size: 1rem;
}

/* Important Note */
.important-note {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    margin: 2rem 0;
}

.important-note i {
    color: #f39c12;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Purpose List */
.purpose-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.purpose-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.purpose-item i {
    color: #27ae60;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* No Marketing Note */
.no-marketing-note {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-marketing-note i {
    color: #e74c3c;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Storage Info */
.storage-info {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.storage-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    border: 1px solid #bee5eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.storage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.storage-item i {
    color: #3498db;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.storage-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* No Sharing Policy */
.no-sharing-policy {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 2px solid #17a2b8;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-sharing-policy i {
    color: #17a2b8;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Access Control */
.access-control {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 2rem 0;
}

.access-control i {
    color: #6c757d;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Security Measures */
.security-measures {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    margin: 2rem 0;
}

.security-measures i {
    color: #28a745;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Rights List */
.rights-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.right-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.right-item i {
    color: #f39c12;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: #3498db;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Update Info */
.update-info {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    border: 1px solid #bee5eb;
    border-radius: 12px;
    margin: 2rem 0;
}

.update-info i {
    color: #3498db;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .policy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .data-item,
    .storage-item,
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .data-icon,
    .storage-item i,
    .contact-item i {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .policy-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .section-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
    }
    
    .header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .policy-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .policy-section {
        border: 2px solid #000;
    }
    
    .english-text {
        border-left-color: #000;
    }
}

/* Additional Interactive Features */

/* Loading Animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.3s ease;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-header:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
}

.toc-header i {
    font-size: 1.2rem;
}

.toc-header span {
    font-weight: 600;
    flex: 1;
}

.toc-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.toc-content.expanded {
    max-height: 600px;
}

.toc-content a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2A3042;
    text-decoration: none;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    position: relative;
}

.toc-content a:hover {
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    color: #2980b9;
    padding-left: 2rem;
}

.toc-content a.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
}

.toc-content a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f39c12;
}

.toc-content a:last-child {
    border-bottom: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

/* Print Button */
.print-button {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.print-button:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.7;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* Section Animation */
.policy-section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .print-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .language-toggle {
        margin-top: 1rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .toc-header {
        padding: 1rem;
    }
    
    .toc-content a {
        padding: 0.75rem 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-info {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .reading-progress {
        height: 3px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .print-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .print-button i {
        display: none;
    }
    
    .language-toggle {
        gap: 0.25rem;
        padding: 0.2rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .lang-btn i {
        display: none;
    }
}

/* Dark Mode Support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    .table-of-contents {
        background: linear-gradient(135deg, #2c3e50, #34495e);
        border-color: #4a5568;
    }
    
    .toc-content {
        background: #2d3748;
    }
    
    .toc-content a {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .toc-content a:hover {
        background: linear-gradient(135deg, #4a5568, #2d3748);
        color: #3498db;
    }
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus Indicators for Better Accessibility */
.toc-toggle:focus,
.back-to-top:focus,
.print-button:focus,
.lang-btn:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

/* Improved Print Styles */
@media print {
    .reading-progress,
    .back-to-top,
    .print-button,
    .language-toggle,
    .toc-toggle {
        display: none !important;
    }
    
    .table-of-contents {
        background: white !important;
        border: 1px solid #000 !important;
    }
    
    .toc-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .toc-content {
        max-height: none !important;
    }
    
    .toc-content a {
        color: #000 !important;
    }
}
