:root {
    /* Light mode colors (default) */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-highlight: #e8f4f8;
    --bg-contact: #ecf0f1;
    --text-primary: #333;
    --text-secondary: #7f8c8d;
    --text-heading: #2c3e50;
    --text-heading-alt: #34495e;
    --accent-color: #3498db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #ddd;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors */
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-highlight: #1e3a4a;
        --bg-contact: #3a3a3a;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --text-heading: #64b5f6;
        --text-heading-alt: #90caf9;
        --accent-color: #64b5f6;
        --shadow-color: rgba(0, 0, 0, 0.5);
        --border-color: #555;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 40px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    font-size: 2.5em;
    color: var(--text-heading);
    margin-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

h2 {
    font-size: 1.8em;
    color: var(--text-heading-alt);
    margin-top: 35px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

h3 {
    font-size: 1.3em;
    color: var(--text-heading-alt);
    margin-top: 25px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

.highlight {
    background-color: var(--bg-highlight);
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    margin: 20px 0;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-info {
    background-color: var(--bg-contact);
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

strong {
    color: var(--text-heading);
    transition: color 0.3s ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

hr {
    border-color: var(--border-color);
    transition: border-color 0.3s ease;
}

@media print {
    :root {
        /* Force light mode for printing */
        --bg-primary: white;
        --bg-secondary: white;
        --text-primary: black;
        --text-heading: #2c3e50;
    }
    
    body {
        background-color: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
        padding: 20px;
    }
}
