/* ==========================================================================
   LOCAL SCAFFOLDING LTD - Legal pages + 404
   Shared by privacy-policy.php, cookie-policy.php, 404.php
   ========================================================================== */

/* ---------- Legal hero (smaller, no bg image) ---------- */
.ls-legal-hero {
    background: var(--ls-purple);
    color: var(--ls-white);
    padding: var(--ls-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.ls-legal-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ls-yellow);
}

.ls-legal-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ls-legal-hero .ls-eyebrow {
    color: var(--ls-yellow);
    margin-bottom: var(--ls-space-md);
    display: block;
}

.ls-legal-hero h1 {
    font-size: 2.5rem;
    color: var(--ls-white);
    margin-bottom: var(--ls-space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}

.ls-legal-hero h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--ls-yellow);
}

.ls-legal-hero-lede {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin: 0 auto var(--ls-space-md);
    max-width: 580px;
}

.ls-legal-hero-meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 0;
}

/* ---------- Legal content (prose) ---------- */
.ls-legal-content {
    background: var(--ls-white);
}

.ls-legal-prose {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ls-text);
    font-size: 1rem;
    line-height: 1.7;
}

.ls-legal-prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ls-text);
    margin-top: var(--ls-space-2xl);
    margin-bottom: var(--ls-space-md);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.ls-legal-prose h2:first-child {
    margin-top: 0;
}

.ls-legal-prose h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--ls-teal);
    border-radius: 1px;
}

.ls-legal-prose p {
    margin-bottom: var(--ls-space-md);
    color: var(--ls-text-muted);
}

.ls-legal-prose ul {
    margin: 0 0 var(--ls-space-md) var(--ls-space-md);
    padding-left: var(--ls-space-md);
    color: var(--ls-text-muted);
}

.ls-legal-prose ul li {
    margin-bottom: 8px;
    line-height: 1.65;
    list-style: disc;
}

.ls-legal-prose strong {
    color: var(--ls-text);
    font-weight: 700;
}

.ls-legal-prose a {
    color: var(--ls-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-weight: 600;
}

.ls-legal-prose a:hover {
    color: var(--ls-purple-dark);
    text-decoration-thickness: 2px;
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */

.ls-error-section {
    background: var(--ls-off-white);
    padding: var(--ls-space-4xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.ls-error-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.ls-error-code {
    display: inline-block;
    font-size: 7rem;
    font-weight: 800;
    color: var(--ls-purple);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: var(--ls-space-md);
    background: linear-gradient(135deg, var(--ls-purple) 0%, var(--ls-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ls-error-section .ls-eyebrow {
    display: block;
    margin-bottom: var(--ls-space-sm);
}

.ls-error-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ls-text);
    margin-bottom: var(--ls-space-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}

.ls-error-section h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--ls-yellow);
    border-radius: 2px;
}

.ls-error-lede {
    font-size: 1.0625rem;
    color: var(--ls-text-muted);
    line-height: 1.65;
    margin: 0 auto var(--ls-space-xl);
    max-width: 540px;
}

.ls-error-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ls-space-md);
    margin-bottom: var(--ls-space-xl);
}

.ls-error-help {
    font-size: 0.9375rem;
    color: var(--ls-text-muted);
}

.ls-error-help a {
    color: var(--ls-purple);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--ls-purple-light);
    padding-bottom: 1px;
}

.ls-error-help a:hover {
    border-color: var(--ls-purple);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
    .ls-legal-hero {
        padding: var(--ls-space-2xl) 0;
    }

    .ls-legal-hero h1 {
        font-size: 2rem;
    }

    .ls-error-section {
        padding: var(--ls-space-3xl) 0;
        min-height: auto;
    }

    .ls-error-code {
        font-size: 5.5rem;
    }

    .ls-error-section h1 {
        font-size: 1.875rem;
    }
}

@media (max-width: 540px) {
    .ls-legal-hero h1 {
        font-size: 1.625rem;
    }

    .ls-legal-hero-lede {
        font-size: 1rem;
    }

    .ls-legal-prose h2 {
        font-size: 1.25rem;
    }

    .ls-error-code {
        font-size: 4.5rem;
    }

    .ls-error-section h1 {
        font-size: 1.5rem;
    }

    .ls-error-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ls-error-actions .ls-btn {
        width: 100%;
    }
}
