.tss-main--404,
.tss-search-page,
.tss-legal-page {
    background: #f5f9fa;
}

.tss-main--404 {
    padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.tss-404 {
    max-width: 760px;
}

.tss-404__number {
    background: linear-gradient(135deg, #00677a, #073a47);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(6rem, 16vw, 10rem);
    letter-spacing: -.06em;
}

.tss-404__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.tss-404__message {
    font-size: 1.08rem;
    margin-inline: auto;
    max-width: 590px;
}

.tss-404__search,
.tss-empty-state {
    background: #fff;
    border: 1px solid #d8e6e8;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(7, 58, 71, .08);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.tss-404__search .search-form,
.tss-search-hero .search-form,
.tss-empty-state .search-form {
    display: flex;
    gap: .65rem;
    margin-inline: auto;
    max-width: 620px;
}

.tss-404__search label,
.tss-search-hero label,
.tss-empty-state label {
    flex: 1;
}

.tss-404__search .search-field,
.tss-search-hero .search-field,
.tss-empty-state .search-field {
    width: 100%;
}

.tss-404__helpful {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.35rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.tss-404__helpful a,
.tss-legal-nav a {
    font-weight: 750;
}

.tss-search-hero,
.tss-legal-hero {
    background: linear-gradient(135deg, #073a47, #0a5968);
    color: #d9edf0;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.tss-search-hero h1,
.tss-legal-hero h1 {
    color: #fff;
    font-size: clamp(2.35rem, 6vw, 4.6rem);
    letter-spacing: -.04em;
    margin: .55rem 0 1rem;
}

.tss-search-hero__eyebrow,
.tss-legal-hero__eyebrow {
    color: #9ed6de;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.tss-search-hero .search-form {
    margin: 1.75rem 0 0;
}

.tss-search-page__body {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.tss-search-page__count {
    color: #536970;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.tss-search-results {
    display: grid;
    gap: 1rem;
}

.tss-search-result {
    background: #fff;
    border: 1px solid #d8e6e8;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(7, 58, 71, .06);
    padding: clamp(1.4rem, 4vw, 2rem);
}

.tss-search-result__type {
    color: #00677a;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tss-search-result h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    margin: .35rem 0 .6rem;
}

.tss-search-result__link {
    display: inline-block;
    font-weight: 800;
    margin-top: .35rem;
}

.tss-empty-state {
    margin-inline: auto;
    max-width: 720px;
    text-align: center;
}

.tss-empty-state__mark {
    align-items: center;
    background: #e6f3f4;
    border-radius: 50%;
    color: #005b6b;
    display: inline-flex;
    font-size: 1.6rem;
    font-weight: 900;
    height: 56px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 56px;
}

.tss-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.35rem;
}

.tss-legal-page__narrow {
    max-width: 920px;
}

.tss-legal-card {
    background: #fff;
    border: 1px solid #d8e6e8;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(7, 58, 71, .08);
    margin-top: -2.5rem;
    padding: clamp(1.5rem, 5vw, 4rem);
    position: relative;
}

.tss-legal-card__content {
    color: #294b54;
    line-height: 1.8;
}

.tss-legal-card__content h2 {
    color: #102f3a;
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin: 2.4rem 0 .7rem;
}

.tss-legal-card__content h2:first-child {
    margin-top: 0;
}

.tss-legal-card__content li {
    margin-bottom: .55rem;
}

.tss-legal-card__content .tss-policy-updated {
    background: #edf7f7;
    border-left: 4px solid #007286;
    border-radius: 8px;
    font-size: .92rem;
    padding: .8rem 1rem;
}

.tss-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.25rem;
    justify-content: center;
    padding: 2rem 0 clamp(4rem, 8vw, 7rem);
}

@media (max-width: 560px) {
    .tss-404__search .search-form,
    .tss-search-hero .search-form,
    .tss-empty-state .search-form {
        display: grid;
    }

    .tss-404__actions,
    .tss-empty-state__actions {
        display: grid;
    }

    .tss-404__actions .tss-btn,
    .tss-empty-state__actions .tss-btn {
        width: 100%;
    }
}
