/* --- ORIGINAL LIGHT THEME --- */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 20px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    font-size: 1.8em;
    color: #b30000; /* Główny kolor ostrzeżenia */
    text-align: center;
    border-bottom: 3px solid #b30000;
    padding-bottom: 15px;
    margin-top: 0;
}

h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 30px;
}

h3 {
    font-size: 1.2em;
    color: #555;
    border-left: 5px solid #ffcc00; /* Akcent żółty */
    padding-left: 10px;
}

.warning, .appeal {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ffcc00;
    background-color: #fffbe6;
    border-radius: 4px;
}

.facts ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.facts li {
    margin-bottom: 15px;
}

.facts strong {
    color: #b30000;
}

.note {
    font-style: italic;
    color: #777;
    margin-top: 5px;
    font-size: 0.9em;
}

.final-warning {
    font-weight: bold;
    color: #b30000;
    padding: 10px;
    border: 2px dashed #b30000;
    text-align: center;
}

.links {
    margin-top: 30px;
}

.links a {
    color: #0066cc;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

footer {
    text-align: right;
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 0.8em;
    color: #999;
}

a[href^="mailto:"] {
    color: #000000;
    font-weight: bold;
}

/* --- DARK MODE OVERRIDES --- */
/* Activates when system settings are set to Dark */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212; /* Very dark grey (softer than pure black) */
        color: #e0e0e0; /* Off-white text */
    }

    .container {
        background-color: #1e1e1e; /* Slightly lighter dark grey for card */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Stronger shadow for depth */
    }

    h1 {
        color: #ff6666; /* Lightened red for better readability on dark */
        border-bottom-color: #ff6666;
    }

    h2 {
        color: #f0f0f0;
    }

    h3 {
        color: #ccc;
        border-left-color: #ffcc00; /* Yellow remains visible */
    }

    .warning, .appeal {
        background-color: rgba(255, 204, 0, 0.1); /* Transparent yellow tint */
        border-color: #b38f00; /* Darker yellow border */
        color: #e0e0e0;
    }

    .facts strong {
        color: #ff6666; /* Matching the lightened red */
    }

    .note {
        color: #aaa; /* Lightened grey */
    }

    .final-warning {
        color: #ff6666;
        border-color: #ff6666;
    }

    .links a {
        color: #4da6ff; /* Light blue for contrast */
    }

    footer {
        border-top-color: #444;
        color: #777;
    }

    a[href^="mailto:"] {
        color: #ffffff;
    }
}