/* --- General Setup & Variables --- */
:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --accent-color: #e9d8a6;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --light-gray: #e9ecef;
    --dark-gray: #6c757d;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 600;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-color);
}

/* --- Header & Footer --- */
.header, .footer {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}
.footer {
    border-top: 1px solid var(--light-gray);
    border-bottom: none;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}
.header .container, .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 40px; }
.logo h1 { font-size: 1.5rem; margin: 0; }
nav { display: flex; gap: 1rem; }

/* --- Main Content Sections --- */
main section {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    background-color: white;
}
.hero h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero .tagline { font-size: 1.2rem; color: var(--dark-gray); margin-bottom: 1.5rem; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
}
.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}


/* --- Tools --- */
.tool-section {
    background-color: var(--background-color);
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.tool-card {
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tool-card h4 { margin-top: 0; }


/* --- Disclaimer & Prose --- */
.disclaimer-preview {
    background-color: #fffbeB; /* Light yellow for attention */
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}
.prose-section .container {
    max-width: 720px;
}
.prose-section h3 { margin-top: 2rem; }

/* --- Tool Page Specific --- */
.legal-wrapper .micro-banner {
    background-color: var(--accent-color);
    color: var(--text-color);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.tool-content {
    padding: 2rem;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-top: 2rem;
}
.tool-header h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.tool-header h2::before {
    content: "Draft for Educational Use Only – Not Legal Advice: ";
    display: block;
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: normal;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}
.modal-content h3 { margin-top: 0; }
.modal-content .checkbox-container {
    margin-top: 1rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}
.modal-content #consent-checkbox {
    margin-top: 0.3rem;
}
#accept-disclaimer-btn {
    margin-top: 1rem;
    width: 100%;
}
#accept-disclaimer-btn:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .header .container { flex-direction: column; gap: 1rem; }
    nav { margin-top: 0.5rem; }
}