/* Static page and 404 layouts. */

/* Static / legal pages */
.static-page-shell{
    padding-top: 26px;
    padding-bottom: 40px;
}

.static-page-card{
    background: transparent;
    color: #111827;
    border-radius: 26px;
    padding: 0;
    border: 0;
}

.static-page-top-shell{
    margin-bottom: 0;
}

.static-page-head{
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(142, 43, 178, 0.10);
}

.static-page-title{
    margin: 0;
    color: var(--purple-2);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.static-page-content{
    color: #1f2937;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 400;
}

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

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

.static-page-content h1,
.static-page-content h2,
.static-page-content h3,
.static-page-content h4,
.static-page-content h5,
.static-page-content h6{
    margin: 28px 0 12px;
    color: var(--purple-2);
    line-height: 1.2;
    font-weight: 800;
}

.static-page-content h2{
    font-size: 28px;
}

.static-page-content h3{
    font-size: 22px;
}

.static-page-content p,
.static-page-content ul,
.static-page-content ol,
.static-page-content blockquote{
    margin: 0 0 16px;
    color: #1f2937;
    font-weight: 400;
}

.static-page-content ul,
.static-page-content ol{
    padding-left: 22px;
}

.static-page-content li + li{
    margin-top: 8px;
}

.static-page-content a{
    color: var(--purple-1);
    font-weight: 700;
}

.static-page-content a:hover{
    color: var(--mustard-3);
}

.static-page-content blockquote{
    padding: 16px 18px;
    border-left: 4px solid var(--mustard-line);
    border-radius: 0 16px 16px 0;
    background: rgba(123, 31, 162, 0.05);
}

.static-page-content strong{
    color: var(--text-dark-2);
}

.static-page-pagination{
    margin-top: 20px;
}

@media (max-width: 768px) {
    .static-page-shell{
        padding-bottom: 24px;
    }

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

    .static-page-head{
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .static-page-title{
        font-size: 28px;
    }

    .static-page-content{
        font-size: 15px;
        line-height: 1.8;
    }

    .static-page-content h2{
        font-size: 24px;
    }

    .static-page-content h3{
        font-size: 20px;
    }
}

/* 404 Page */
.error-404-shell{
    padding-top: 26px;
    padding-bottom: 42px;
}

.error-404-card{
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.error-404-media{
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-media img{
    display: block;
    width: min(100%, 420px);
    height: auto;
}

.error-404-content{
    max-width: 620px;
}

.error-404-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    border: 2px solid rgba(244, 190, 0, 0.42);
    background: linear-gradient(180deg, rgba(255, 248, 229, 0.96) 0%, rgba(255, 240, 196, 0.96) 100%);
    color: #6a4200;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.error-404-title{
    margin: 0 0 14px;
    color: var(--purple-2);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.error-404-text{
    margin: 0;
    max-width: 58ch;
    color: rgba(58, 36, 76, 0.88);
    font-size: 17px;
    line-height: 1.85;
}

.error-404-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
    justify-content: center;
}

@media (max-width: 980px) {
    .error-404-card{
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .error-404-content{
        max-width: 100%;
    }

    .error-404-text{
        max-width: none;
    }

    .error-404-actions{
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .error-404-shell{
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .error-404-card{
        gap: 18px;
    }

    .error-404-media img{
        width: min(100%, 320px);
    }

    .error-404-title{
        font-size: 30px;
    }

    .error-404-text{
        font-size: 15px;
        line-height: 1.75;
    }

    .error-404-actions{
        gap: 12px;
    }

    .error-404-button{
        width: 100%;
    }
}

.error-404-button{
    min-width: 220px;
    min-height: 46px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.error-404-button:hover{
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
}

.error-404-button:active{
    transform: translateY(0);
}
