:root {
    --primary-color: #d32f2f;
    --secondary-color: #ffd54f;
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --header-bg: #212121;
    --border-radius: 8px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem 0;
}

section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

form fieldset {
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

form legend {
    font-weight: bold;
    padding: 0 0.5rem;
    color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    background-color: #b71c1c;
}

.btn-secondary {
    background-color: var(--header-bg);
    color: var(--white);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #424242;
}

.print-sheet {
    border: 4px solid var(--primary-color);
    padding: 2rem;
    background-color: var(--white);
}

.print-sheet h1 {
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 1rem;
}

.print-section {
    margin-bottom: 1.5rem;
}

.print-section h3 {
    background-color: var(--secondary-color);
    color: var(--header-bg);
    padding: 0.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.print-data {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #eee;
    color: #555;
}

footer nav a {
    margin: 0 10px;
    color: #555;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

@media print {
    body * {
        visibility: hidden;
    }
    .print-sheet, .print-sheet * {
        visibility: visible;
    }
    .print-sheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        padding: 0;
    }
    .print-sheet h3 {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        background-color: #eee !important; /* fallback for print */
    }
}

@media (max-width: 600px) {
    section {
        padding: 1rem;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
