/* legal.css - Legal articles, error page, consent gate. */

.legal {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-1);
}
.legal--narrow {
    max-width: 600px;
}
.legal h2 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.5rem;
    color: var(--text-primary);
}
.legal p,
.legal li {
    color: var(--text-primary);
    font-size: 0.96rem;
    line-height: 1.65;
}
.legal__updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.legal__list {
    margin: 0 0 1rem 1.3rem;
    padding: 0;
}
.legal__list li {
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

/* ---------- Error page ---------- */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 560px;
    margin: 0 auto;
}
.error-page__code {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--brand);
    opacity: 0.3;
    margin: 0;
}
.error-page__heading {
    font-size: 1.75rem;
    margin: 0.35rem 0 0.5rem;
}
.error-page__copy {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}
.error-page__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---------- Consent gate ---------- */
.consent {
    max-width: 640px;
    margin: 0 auto;
}
.consent__title {
    font-size: 1.5rem;
}
.consent__lead {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.consent__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.consent__item:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 6px var(--brand-soft);
}
.consent__item input {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
    flex: 0 0 auto;
}
.consent__item span {
    display: block;
}
.consent__meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}
.consent__summary {
    color: var(--text-primary);
    font-size: 0.92rem;
    margin-top: 0.35rem;
    line-height: 1.5;
}

.consent__submit {
    width: 100%;
    margin-top: 0.75rem;
}
.consent__signout {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

@media (max-width: 560px) {
    .legal {
        padding: 1.25rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .legal h2 { font-size: 1.05rem; margin-top: 1.5rem; }
    .legal p, .legal li { font-size: 0.92rem; }
    .consent__item { padding: 0.85rem; }
    .consent__item input { width: 20px; height: 20px; }
    .consent__summary { font-size: 0.88rem; }
}

@media (max-width: 360px) {
    .legal { padding: 1rem; }
    .error-page__code { font-size: 4rem; }
    .error-page__heading { font-size: 1.5rem; }
    .consent__title { font-size: 1.3rem; }
}