:root
{
    --brand-orange: #fb5400;
    --brand-red: #d80700;
    --brand-green: #34861c;
    --brand-black: #000000;
    --text-muted: #6c757d;
    --bg-page: #f8f9fa;
    --bg-surface: #ffffff;
    --border-color: #dee2e6;
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --content-max-width: 720px;
    --logo-height: 120px;
}

*,
*::before,
*::after
{
    box-sizing: border-box;
}

html,
body
{
    height: 100%;
    margin: 0;
}

body
{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--brand-black);
    background-color: var(--bg-page);
    min-height: 100vh;
}

a
{
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover
{
    color: var(--brand-orange);
}

.site-main
{
    padding: 3rem 1.5rem 4rem;
}

.content
{
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}

.site-logo
{
    height: var(--logo-height);
    width: auto;
    display: block;
    margin: 0 auto 2.5rem;
}

.content-section
{
    margin-bottom: 3rem;
}

.content-section:last-of-type
{
    margin-bottom: 2.5rem;
}

.content h1
{
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.5rem;
}

.content h2
{
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

.hero-success
{
    display: block;
    color: var(--brand-green);
    margin-top: 0.25rem;
}

.content p
{
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
}

.content p:last-child
{
    margin-bottom: 0;
}

.placeholder
{
    color: var(--text-muted);
    font-style: italic;
}

.legal-links
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.9375rem;
}

.legal-link
{
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.legal-link:hover
{
    color: var(--brand-orange);
}

.legal-separator
{
    color: var(--text-muted);
}

.modal
{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.is-open
{
    display: flex;
}

.modal-backdrop
{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal-dialog
{
    position: relative;
    background: var(--bg-surface);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 900px);
    overflow: hidden;
}

.modal-dialog-lg
{
    max-width: min(900px, 92vw);
}

.modal-header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h2
{
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.modal-body
{
    overflow-y: auto;
    padding: 1.5rem;
    text-align: left;
    flex: 1 1 auto;
    min-height: 0;
}

.legal-content
{
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal-content h3
{
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
}

.legal-content h3:first-child,
.legal-content .legal-effective + h3
{
    margin-top: 0;
}

.legal-content h4
{
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.legal-content p
{
    margin: 0 0 1rem;
}

.legal-content ul
{
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.legal-content li
{
    margin-bottom: 0.35rem;
}

.legal-effective
{
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem !important;
}

.modal-close
{
    position: static;
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease;
}

.modal-close:hover
{
    color: var(--brand-black);
}

body.modal-open
{
    overflow: hidden;
}

@media (max-width: 480px)
{
    :root
    {
        --logo-height: 96px;
    }

    .site-main
    {
        padding: 2rem 1.25rem 3rem;
    }

    .content p
    {
        font-size: 1rem;
    }

    .modal-body
    {
        padding: 1.25rem;
    }
}
