/*
 * MITRECaldera.com information and legal pages
 * Scoped under .mc-page to avoid conflicts with the existing site theme.
 */

:root {
    --mc-bg: #07111f;
    --mc-bg-soft: #0d1a2d;
    --mc-card: #ffffff;
    --mc-card-soft: #f6f9fc;
    --mc-text: #172234;
    --mc-muted: #5c6878;
    --mc-line: #dce5ef;
    --mc-brand: #00a8c6;
    --mc-brand-dark: #087d97;
    --mc-accent: #ffb84d;
    --mc-success: #137a55;
    --mc-danger: #b42318;
    --mc-shadow: 0 22px 60px rgba(10, 30, 54, 0.12);
    --mc-radius-lg: 24px;
    --mc-radius-md: 16px;
    --mc-radius-sm: 10px;
}

.mc-page,
.mc-page * {
    box-sizing: border-box;
}

.mc-page {
    color: var(--mc-text);
    background:
        radial-gradient(circle at 8% 3%, rgba(0, 168, 198, 0.09), transparent 24rem),
        linear-gradient(180deg, #f8fbfe 0%, #ffffff 32%, #f8fbfe 100%);
    font-family: inherit;
    line-height: 1.75;
    overflow: hidden;
}

.mc-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.mc-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(72px, 10vw, 126px) 0 clamp(64px, 8vw, 100px);
    color: #ffffff;
    background:
        linear-gradient(118deg, rgba(3, 13, 27, 0.98), rgba(9, 35, 59, 0.94)),
        var(--mc-bg);
}

.mc-hero::before,
.mc-hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    content: "";
    filter: blur(2px);
    pointer-events: none;
}

.mc-hero::before {
    top: -150px;
    right: -80px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle, rgba(0, 168, 198, 0.22), transparent 68%);
}

.mc-hero::after {
    bottom: -170px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.13), transparent 68%);
}

.mc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.mc-breadcrumbs a:hover {
    color: var(--mc-accent);
}

.mc-breadcrumbs span[aria-hidden="true"] {
    color: var(--mc-brand);
}

.mc-eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: #86e8f4;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mc-eyebrow::before {
    width: 30px;
    height: 2px;
    background: var(--mc-accent);
    content: "";
}

.mc-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 6vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.mc-hero p {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.mc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.mc-meta-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.88rem;
    font-weight: 700;
}

.mc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mc-brand);
    box-shadow: 0 0 0 4px rgba(0, 168, 198, 0.15);
}

.mc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(28px, 5vw, 60px);
    align-items: start;
    padding: clamp(58px, 8vw, 94px) 0;
}

.mc-content {
    min-width: 0;
}

.mc-section {
    margin-bottom: 56px;
    scroll-margin-top: 110px;
}

.mc-section:last-child {
    margin-bottom: 0;
}

.mc-section h2 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 16px;
    color: var(--mc-bg);
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.mc-section h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mc-brand), var(--mc-accent));
    content: "";
}

.mc-section h3 {
    margin: 30px 0 12px;
    color: #14243a;
    font-size: 1.18rem;
    line-height: 1.35;
}

.mc-section p {
    margin: 0 0 17px;
    color: var(--mc-muted);
}

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

.mc-section a:not(.mc-button) {
    color: var(--mc-brand-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.mc-section a:not(.mc-button):hover {
    color: #075d70;
}

.mc-lead {
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgba(0, 168, 198, 0.18);
    border-radius: var(--mc-radius-lg);
    background: linear-gradient(135deg, #eefbfe, #ffffff);
    box-shadow: 0 18px 48px rgba(11, 104, 125, 0.08);
}

.mc-lead p {
    color: #34475d;
    font-size: 1.05rem;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mc-card {
    height: 100%;
    padding: 26px;
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-md);
    background: var(--mc-card);
    box-shadow: 0 12px 34px rgba(18, 39, 66, 0.06);
}

.mc-card h3 {
    margin-top: 0;
}

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

.mc-card-number {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mc-brand-dark), var(--mc-brand));
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 168, 198, 0.2);
}

.mc-check-list,
.mc-policy-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.mc-check-list li,
.mc-policy-list li {
    position: relative;
    padding-left: 30px;
    color: var(--mc-muted);
}

.mc-check-list li::before,
.mc-policy-list li::before {
    position: absolute;
    top: 0.39em;
    left: 0;
    display: grid;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    place-items: center;
    color: #ffffff;
    background: var(--mc-brand);
    content: "✓";
    font-size: 0.7rem;
    font-weight: 900;
}

.mc-policy-list li::before {
    border-radius: 5px;
    color: var(--mc-brand-dark);
    background: #dff7fb;
    content: "•";
    font-size: 1.1rem;
}

.mc-note,
.mc-warning,
.mc-disclosure {
    margin: 28px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--mc-brand);
    border-radius: 0 var(--mc-radius-sm) var(--mc-radius-sm) 0;
    background: #edf9fc;
}

.mc-warning {
    border-left-color: var(--mc-accent);
    background: #fff8ec;
}

.mc-disclosure {
    border-left-color: #65768c;
    background: #f2f5f8;
}

.mc-note strong,
.mc-warning strong,
.mc-disclosure strong {
    display: block;
    margin-bottom: 5px;
    color: var(--mc-text);
}

.mc-note p,
.mc-warning p,
.mc-disclosure p {
    margin: 0;
}

.mc-table-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-md);
    background: #ffffff;
}

.mc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.mc-table th,
.mc-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--mc-line);
    vertical-align: top;
    text-align: left;
}

.mc-table th {
    color: #ffffff;
    background: var(--mc-bg-soft);
    font-size: 0.85rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.mc-table td {
    color: var(--mc-muted);
    font-size: 0.95rem;
}

.mc-table tr:last-child td {
    border-bottom: 0;
}

.mc-sidebar {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--mc-shadow);
    backdrop-filter: blur(14px);
}

.mc-sidebar h2 {
    margin: 0 0 14px;
    color: var(--mc-bg);
    font-size: 0.96rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mc-sidebar nav {
    display: grid;
}

.mc-sidebar a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f5;
    border-radius: 8px;
    color: var(--mc-muted);
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: 160ms ease;
}

.mc-sidebar a:last-child {
    border-bottom: 0;
}

.mc-sidebar a:hover,
.mc-sidebar a:focus-visible {
    color: var(--mc-brand-dark);
    background: #eef9fb;
    transform: translateX(3px);
}

.mc-cta {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 52px;
    padding: clamp(26px, 5vw, 42px);
    border-radius: var(--mc-radius-lg);
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 168, 198, 0.25), transparent 18rem),
        var(--mc-bg);
    box-shadow: var(--mc-shadow);
}

.mc-cta h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.25;
}

.mc-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.mc-button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    color: #07111f;
    background: var(--mc-accent);
    box-shadow: 0 12px 28px rgba(255, 184, 77, 0.2);
    font: inherit;
    font-size: 0.93rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: 170ms ease;
}

.mc-button:hover,
.mc-button:focus-visible {
    background: #ffc66d;
    transform: translateY(-2px);
}

.mc-button--brand {
    color: #ffffff;
    background: var(--mc-brand-dark);
    box-shadow: 0 12px 28px rgba(8, 125, 151, 0.2);
}

.mc-button--brand:hover,
.mc-button--brand:focus-visible {
    background: #066d83;
}

.mc-contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 28px;
    align-items: start;
}

.mc-contact-card,
.mc-form-card {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-lg);
    background: #ffffff;
    box-shadow: var(--mc-shadow);
}

.mc-contact-card h2,
.mc-form-card h2 {
    margin-top: 0;
}

.mc-contact-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--mc-line);
}

.mc-contact-item:last-child {
    border-bottom: 0;
}

.mc-contact-label {
    display: block;
    margin-bottom: 4px;
    color: var(--mc-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-contact-value {
    color: var(--mc-bg);
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mc-form {
    display: grid;
    gap: 19px;
}

.mc-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mc-field label {
    display: block;
    margin-bottom: 7px;
    color: #263a52;
    font-size: 0.9rem;
    font-weight: 800;
}

.mc-field input,
.mc-field select,
.mc-field textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #ccd8e5;
    border-radius: 10px;
    outline: none;
    color: var(--mc-text);
    background: #fbfdff;
    font: inherit;
    transition: 150ms ease;
}

.mc-field textarea {
    min-height: 180px;
    resize: vertical;
}

.mc-field input:focus,
.mc-field select:focus,
.mc-field textarea:focus {
    border-color: var(--mc-brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 168, 198, 0.12);
}

.mc-field-hint {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 0.79rem;
}

.mc-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mc-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.92rem;
}

.mc-alert--success {
    border-color: #a7dfc8;
    color: #0c6041;
    background: #effbf6;
}

.mc-alert--error {
    border-color: #f0b4af;
    color: #8e1f17;
    background: #fff5f4;
}

.mc-alert ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.mc-small {
    color: #738095;
    font-size: 0.86rem;
}

.mc-updated {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    padding: 8px 12px;
    border: 1px solid var(--mc-line);
    border-radius: 999px;
    color: #536176;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 940px) {
    .mc-layout {
        grid-template-columns: 1fr;
    }

    .mc-sidebar {
        position: static;
        grid-row: 1;
    }

    .mc-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
    }

    .mc-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .mc-container {
        width: min(100% - 28px, 1180px);
    }

    .mc-hero {
        padding: 60px 0 58px;
    }

    .mc-grid,
    .mc-form-row,
    .mc-sidebar nav {
        grid-template-columns: 1fr;
    }

    .mc-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-button {
        width: 100%;
    }

    .mc-card,
    .mc-lead,
    .mc-contact-card,
    .mc-form-card {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-page *,
    .mc-page *::before,
    .mc-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
