/* ProBPR platform legal pages and global 404 shell. */

body.probpr-public-body {
    margin: 0;
    min-height: 100vh;
    background: var(--probpr-platform-bg);
    color: var(--probpr-platform-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.probpr-public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.probpr-public-shell .probpr-platform-header {
    flex: 0 0 auto;
}

.probpr-public-main {
    flex: 1 0 auto;
    padding: 34px 0 58px;
}

.probpr-public-content {
    min-width: 0;
}

.probpr-public-content > :first-child {
    margin-top: 0 !important;
}

.probpr-public-content > :last-child {
    margin-bottom: 0 !important;
}

/* The legal document itself already contains its own ProBPR hero and cards. */
.probpr-public-content .probpr-legal {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}

.probpr-public-card {
    max-width: 760px;
    margin: 54px auto;
    padding: 34px;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--probpr-platform-shadow-soft);
}

.probpr-public-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.probpr-public-card p {
    margin: 0;
    color: var(--probpr-platform-muted);
}

.probpr-error-main {
    display: flex;
    align-items: center;
    padding: 0;
}

.probpr-error-hero {
    width: 100%;
    padding: 86px 0 96px;
}

.probpr-error-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .75fr);
    align-items: center;
    gap: clamp(42px, 7vw, 92px);
}

.probpr-error-code {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(37, 99, 235, .12);
    font-size: clamp(92px, 15vw, 190px);
    font-weight: 950;
    line-height: .68;
    letter-spacing: -.1em;
    user-select: none;
}

.probpr-error-copy h1 {
    max-width: 760px;
    margin: 18px 0;
    color: #0f172a;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
}

.probpr-error-copy > p {
    max-width: 710px;
    margin: 0;
    color: #526176;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 620;
}

.probpr-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.probpr-error-panel {
    padding: 30px;
    border: 1px solid rgba(219, 228, 240, .95);
    border-radius: 30px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 26px 80px rgba(15, 23, 42, .12);
    backdrop-filter: blur(16px);
}

.probpr-error-panel-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
    font-size: 26px;
    font-weight: 950;
}

.probpr-error-panel h2 {
    margin: 22px 0 14px;
    font-size: 25px;
    letter-spacing: -.035em;
}

.probpr-error-panel > a {
    display: block;
    margin-top: 10px;
    padding: 16px 17px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    color: #0f172a;
    background: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.probpr-error-panel > a:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
}

.probpr-error-panel strong,
.probpr-error-panel span {
    display: block;
}

.probpr-error-panel strong {
    font-size: 15px;
}

.probpr-error-panel span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .probpr-error-grid {
        grid-template-columns: 1fr;
    }

    .probpr-error-panel {
        max-width: 680px;
    }
}

@media (max-width: 720px) {
    .probpr-public-main {
        padding: 20px 0 36px;
    }

    .probpr-error-hero {
        padding: 54px 0 64px;
    }

    .probpr-error-code {
        font-size: 96px;
    }

    .probpr-error-copy h1 {
        font-size: 42px;
    }

    .probpr-error-copy > p {
        font-size: 16px;
    }

    .probpr-error-panel {
        padding: 22px;
        border-radius: 22px;
    }
}
