/* Public CMS Pages */
.cms-page {
    background: var(--bg-base);
}

.page-hero {
    position: relative;
    background: var(--hero-gradient);
    padding: 3.5rem 0 3.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.page-breadcrumb a:hover {
    color: var(--primary-light);
}

.page-breadcrumb-sep {
    font-size: 0.65rem;
    opacity: 0.6;
}

.page-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.page-hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

.page-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1.1rem auto 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-about-highlights {
    padding: 3.5rem 0 1rem;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
}

.page-about-highlights-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.page-about-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.page-about-highlights-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin: 0;
}

.page-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.page-highlight-card {
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-highlight-card:hover {
    background: rgba(var(--primary-rgb), 0.04);
    border-color: rgba(var(--primary-rgb), 0.28);
    transform: translateY(-3px);
}

.page-highlight-icon {
    width: 52px;
    height: 52px;
    background: rgba(var(--primary-rgb), 0.14);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.15rem;
}

.page-highlight-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.page-highlight-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.page-content-section {
    padding: 2.5rem 0 4rem;
}

.page-layout {
    max-width: 920px;
    margin: 0 auto;
}

.page-layout-legal {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1100px;
    align-items: start;
}

.page-toc-card {
    position: sticky;
    top: 88px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.page-toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.page-toc {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-toc a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.page-toc a:hover,
.page-toc a.active {
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.08);
    border-left-color: var(--primary);
}

.page-content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.75rem 3rem;
    line-height: 1.8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page-prose > *:first-child {
    margin-top: 0;
}

.page-prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.25rem 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 96px;
}

.page-prose h2:first-child {
    margin-top: 0;
}

.page-prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.65rem;
}

.page-prose p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.page-prose .page-lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.page-prose ul,
.page-prose ol {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
}

.page-prose ul li,
.page-prose ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.page-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.page-prose ol {
    counter-reset: page-section;
}

.page-prose ol li {
    counter-increment: page-section;
}

.page-prose ol li::before {
    content: counter(page-section);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-prose-about .page-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
    padding: 0;
    list-style: none;
}

.page-prose-about .page-feature-grid li {
    padding: 1.15rem 1.15rem 1.15rem 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.page-prose-about .page-feature-grid li::before {
    left: 1.15rem;
    top: 1.35rem;
}

.page-prose .page-callout {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-dark);
}

.page-prose .page-callout strong {
    color: var(--primary-light);
}

.page-prose a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-prose a:hover {
    color: var(--primary);
}

.page-cta-band {
    padding: 0 0 4rem;
}

.page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14) 0%, rgba(var(--primary-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 18px;
    padding: 2.25rem 2.5rem;
}

.page-cta-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.page-cta-inner h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.page-cta-inner p {
    margin: 0;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
}

.page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Contact Page */
.contact-section {
    padding: 3rem 0 4rem;
}

.contact-info-card,
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-list li i {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-top: 0.15rem;
}

.contact-info-list li strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.contact-info-list li a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-info-list li a:hover {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.contact-social a:hover {
    background: var(--primary);
    color: #fff;
}

.contact-form-card .form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form-card .form-control {
    background: #0a0a0a;
    border-color: var(--border);
    color: var(--text-dark);
}

.contact-form-card .form-control:focus {
    background: #0a0a0a;
    border-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.contact-map .map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-map .map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

@media (max-width: 991.98px) {
    .page-layout-legal {
        grid-template-columns: 1fr;
    }

    .page-toc-card {
        position: static;
    }

    .page-toc {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-toc a {
        border-left: none;
        border: 1px solid var(--border);
        padding: 0.4rem 0.75rem;
        border-radius: 50px;
        font-size: 0.8rem;
    }

    .page-toc a.active {
        border-color: rgba(var(--primary-rgb), 0.4);
    }

    .page-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-prose-about .page-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 2.5rem 0 2.75rem;
    }

    .page-hero h1 {
        font-size: 1.85rem;
    }

    .page-content-card {
        padding: 1.5rem 1.25rem;
    }

    .page-highlight-grid {
        grid-template-columns: 1fr;
    }

    .page-about-highlights {
        padding: 2.5rem 0 0.5rem;
    }

    .page-cta-inner {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-cta-actions {
        width: 100%;
    }

    .page-cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}
