/* --- Theme Variables --- */
:root {
    /* Regular Theme (Default) */
    --bg-color: #f0f0f0;
    --panel-bg: #ffffff;
    --border-color: #333;
    --button-bg: #4a90e2;
    --button-hover: #3a80d2;
    --accent-1: #4a90e2;
    --accent-2: #4a90e2;
    --accent-3: #50c878;
    --delete-color: #e24a4a;
    --text-color: #000;
    --shadow: 3px 3px 0px rgba(0,0,0,0.2);
    --input-bg: #ffffff;
    --input-text: #000000;
    --button-text: #ffffff;
}

/* High Contrast Theme */
.theme-high-contrast {
    --bg-color: #ffffff;
    --panel-bg: #ffffff;
    --border-color: #000000;
    --button-bg: #000000;
    --button-hover: #000000;
    --accent-1: #000000;
    --accent-2: #000000;
    --accent-3: #000000;
    --delete-color: #ff0000;
    --text-color: #000000;
    --shadow: 3px 3px 0px #000000;
    --input-bg: #ffffff;
    --input-text: #000000;
    --button-text: #ffffff;
}

/* Dark Theme */
.theme-dark {
    --bg-color: #1a1a1a;
    --panel-bg: #2d2d2d;
    --border-color: #404040;
    --button-bg: #4a90e2;
    --button-hover: #5da8ff;
    --accent-1: #4a90e2;
    --accent-2: #5da8ff;
    --accent-3: #50c878;
    --delete-color: #ff6b6b;
    --text-color: #ffffff;
    --shadow: 3px 3px 0px #000000;
    --input-bg: #404040;
    --input-text: #ffffff;
    --button-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--bg-color);
    padding: 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

/* Background Buttons */
.background-buttons {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.background-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.background-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.return-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-window {
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin: 80px auto 30px auto;
    transition: all 0.3s ease;
    border-radius: 0;
}

.title-bar {
    background: var(--accent-1);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 50px;
    border-radius: 0;
    font-family: 'Times New Roman', Times, serif;
}

/* Privacy Policy Content */
.privacy-content {
    padding: 25px;
    line-height: 1.4;
}

.privacy-section h2 {
    color: var(--accent-1);
    margin-bottom: 20px;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 24px;
    border-bottom: 2px solid var(--border-color);
    font-family: 'Times New Roman', Times, serif;
}

.privacy-section h3 {
    color: var(--accent-2);
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}

.privacy-section p,
.privacy-section ul,
.privacy-section ol {
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
}

.privacy-section ul,
.privacy-section ol {
    padding-left: 25px;
}

.privacy-section li {
    margin-bottom: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
}

.privacy-section a {
    color: var(--accent-1);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* Footer */
.footer-container {
    text-align: center;
    margin-top: 10px;
    padding: 0px;
}

.copyright-footer {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

.privacy-policy-footer {
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

.privacy-policy-footer a {
    color: var(--accent-1);
    text-decoration: none;
}

.privacy-policy-footer a:hover {
    text-decoration: underline;
}

/* Theme Specific Overrides */
.theme-high-contrast .title-bar {
    background: #000000 !important;
    color: #ffffff !important;
}

.theme-high-contrast .background-button {
    border: 2px solid #000000 !important;
}

.theme-dark .background-button {
    border: 2px solid #404040 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .background-buttons {
        padding: 0 10px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .background-button {
        width: 100%;
        max-width: 200px;
    }
    
    .privacy-window {
        margin-top: 140px;
    }
    
    .title-bar {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .privacy-content {
        padding: 15px;
    }
    
    .privacy-section h2 {
        font-size: 20px;
    }
    
    .privacy-section h3 {
        font-size: 16px;
    }
    
    .privacy-section p,
    .privacy-section ul,
    .privacy-section ol,
    .privacy-section li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .background-buttons {
        top: 10px;
    }
    
    .privacy-window {
        margin-top: 150px;
    }
    
    .background-button {
        padding: 8px 15px;
        font-size: 13px;
        min-width: 80px;
    }
}