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

:root {
    --primary-color: #d32f2f;
    --secondary-color: #c62828;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --link-color: #1976d2;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding: 0;
    margin: 0;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: var(--shadow);
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

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

.last-updated {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Main Content */
main {
    padding: 2rem;
}

section {
    margin-bottom: 2.5rem;
}

section.intro {
    background-color: #fff3e0;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 2rem;
}

section.intro p {
    font-size: 1.1rem;
    color: #5d4037;
    line-height: 1.7;
}

/* Headings */
h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}

/* Paragraphs and Lists */
p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

li strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.generator-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Consent Section */
.consent {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-left: 4px solid var(--link-color);
    border-radius: 4px;
}

.consent p {
    color: #1565c0;
    font-weight: 500;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #263238;
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header {
        padding: 2rem 1.5rem 1.5rem;
    }

    main {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p, li {
        font-size: 1rem;
    }

    .container {
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }

    main {
        padding: 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .contact, .consent, section.intro {
        padding: 1rem;
    }

    ul {
        margin-left: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: var(--white);
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    header {
        background: var(--white);
        color: var(--text-color);
        border-bottom: 2px solid var(--primary-color);
    }

    header h1 {
        text-shadow: none;
    }

    a {
        color: var(--text-color);
        text-decoration: underline;
    }

    footer {
        background-color: var(--white);
        color: var(--text-color);
        border-top: 2px solid var(--border-color);
    }
}

/* Accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}
