/* =========================================================
   FRONTEND CONTENT PAGES + COOKIE CONSENT
   ========================================================= */

.content-page-shell {
    padding: 42px 0 72px;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, .045), transparent 34%),
        var(--front-bg);
}

.content-page-card {
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto;
    border: 1px solid var(--front-border);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--front-shadow);
}

.content-page-hero {
    padding: clamp(26px, 5vw, 46px);
    border-bottom: 1px solid var(--front-border);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.content-page-hero span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.content-page-hero h1 {
    margin: 14px 0 10px;
    color: var(--front-text);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.065em;
}

.content-page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--front-muted);
    font-size: 16px;
    line-height: 1.65;
}

.content-page-body {
    padding: clamp(24px, 4vw, 42px);
    color: #1e293b;
    font-size: 16px;
    line-height: 1.75;
}

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

.content-page-body > *:last-child {
    margin-bottom: 0;
}

.content-page-body h2,
.content-page-body h3 {
    color: #0f172a;
    letter-spacing: -.04em;
}

.content-page-body h2 {
    margin: 32px 0 12px;
    font-size: 28px;
}

.content-page-body h3 {
    margin: 26px 0 10px;
    font-size: 22px;
}

.content-page-body p,
.content-page-body ul,
.content-page-body ol {
    margin: 0 0 16px;
}

.content-page-body a {
    color: #1d4ed8;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-page-actions {
    display: flex;
    gap: 10px;
    padding: 0 clamp(24px, 4vw, 42px) clamp(24px, 4vw, 42px);
}

.content-page-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 0;
    font-weight: 950;
}

.content-page-btn.is-primary {
    background: #0f172a;
    color: #ffffff;
}

.content-page-btn.is-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--front-border);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 900;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-copy {
    white-space: nowrap;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 0 var(--front-gutter) 20px;
    transform: translateY(110%);
    opacity: 0;
    transition: transform .26s ease, opacity .26s ease;
    pointer-events: none;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-card {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: 24px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
    backdrop-filter: blur(14px);
}

.cookie-consent-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.cookie-consent-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cookie-consent strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.cookie-consent p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-link,
.cookie-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.cookie-link {
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cookie-btn {
    border: 1px solid transparent;
}

.cookie-btn.is-secondary {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
}

.cookie-btn.is-primary {
    color: #ffffff;
    background: #0f172a;
}

@media (max-width: 900px) {
    .cookie-consent-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .cookie-consent-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .cookie-link,
    .cookie-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 760px) {
    .content-page-shell {
        padding: 26px 0 56px;
    }

    .content-page-card {
        border-radius: 22px;
    }

    .footer-inner {
        gap: 16px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .cookie-consent {
        padding-bottom: 14px;
    }

    .cookie-consent-card {
        border-radius: 20px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-link,
    .cookie-btn {
        width: 100%;
    }
}

/* =========================================================
   PROFESSIONAL SYSTEM PAGES - 404 / Maintenance
   ========================================================= */

.system-page-shell {
    min-height: min(760px, calc(100vh - 170px));
    display: grid;
    place-items: center;
    padding: 56px 0 86px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, .13), transparent 32%),
        radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 34%),
        var(--front-bg);
}

.system-page-card {
    position: relative;
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--front-border);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 38%),
        #ffffff;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .10);
    text-align: center;
}

.system-page-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .05);
    pointer-events: none;
}

.system-page-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.system-page-icon.is-maintenance {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.system-page-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-page-card > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.system-page-card h1 {
    max-width: 780px;
    margin: 16px auto 12px;
    color: #0f172a;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.075em;
}

.system-page-card p {
    max-width: 680px;
    margin: 0 auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 750;
}

.system-page-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.system-page-status {
    width: min(520px, 100%);
    display: grid;
    gap: 4px;
    margin: 28px auto 0;
    padding: 16px;
    border: 1px solid #fde68a;
    border-radius: 20px;
    background: #fffbeb;
    color: #92400e;
}

.system-page-status strong {
    color: #92400e;
    font-weight: 950;
}

.system-page-status small {
    color: #a16207;
    font-weight: 800;
}

/* Footer links refined for new footer layout */
.footer-links {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .system-page-shell {
        padding: 34px 0 64px;
    }

    .system-page-card {
        border-radius: 24px;
    }

    .system-page-actions .content-page-btn {
        width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
