/* ========================================
   LEGAL / CONTENT PAGES
   Privacy, Terms, 404
   ======================================== */

/* ---- Legal Content ---- */
.legal-content {
    padding-block: var(--space-3xl);
    background-color: var(--color-off-white);
    color: var(--color-primary);
}

.legal-content-inner {
    max-width: 760px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

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

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.legal-content p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-grey-500);
    margin-bottom: var(--space-sm);
}

.legal-content ul {
    margin-bottom: var(--space-sm);
    padding-left: 1.25rem;
}

.legal-content li {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-grey-500);
    margin-bottom: 0.375rem;
    list-style-type: disc;
}

.legal-content a {
    color: var(--color-accent);
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--color-accent-dark);
}

.legal-updated {
    font-size: var(--text-sm);
    color: var(--color-grey-400);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-grey-200);
}

/* ---- 404 Page ---- */
.error-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    padding-top: var(--header-height);
    text-align: center;
}

.error-content {
    max-width: 520px;
    padding: var(--space-xl) var(--gutter);
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 4rem + 5vw, 10rem);
    font-weight: var(--fw-extrabold);
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.15;
    margin-bottom: var(--space-md);
}

.error-heading {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-sm);
}

.error-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-grey-300);
    margin-bottom: var(--space-lg);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}