/* =====================================================================
   LEGAL & 404 — Pages éditoriales secondaires (charbon, sobre)
   ===================================================================== */

.legal-stage,
.notfound-stage {
    position: relative;
    z-index: 5;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(7rem, 14vh, 10rem) clamp(1.5rem, 5vw, 3rem) 6rem;
    color: var(--ivory, #ede5d6);
}

/* ── HEAD ─────────────────────────────────── */
.legal-head {
    margin-bottom: clamp(3rem, 7vh, 5rem);
    border-bottom: 1px solid rgba(237, 229, 214, 0.10);
    padding-bottom: 2rem;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.legal-eyebrow .eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.legal-title {
    font-family: var(--serif, serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ivory, #ede5d6);
    margin: 0 0 0.75rem;
}
.legal-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
}

.legal-sub {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(237, 229, 214, 0.55);
    margin: 0;
}

/* ── BODY ─────────────────────────────────── */
.legal-body section {
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.legal-body h2 {
    font-family: var(--display, 'Syne', sans-serif);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    color: var(--ivory, #ede5d6);
    margin: 0 0 1.25rem;
    letter-spacing: -0.015em;
}
.legal-body h3 {
    font-family: var(--display, 'Syne', sans-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gold);
    margin: 1.5rem 0 0.65rem;
    letter-spacing: -0.01em;
}
.legal-body p,
.legal-body li {
    font-family: var(--body, 'Onest', sans-serif);
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(237, 229, 214, 0.78);
    margin: 0 0 1rem;
}
.legal-body ul {
    padding-left: 1.4rem;
    margin: 0 0 1.25rem;
}
.legal-body li {
    margin-bottom: 0.4rem;
}
.legal-body li::marker {
    color: var(--gold);
}
.legal-body strong {
    color: var(--ivory, #ede5d6);
    font-weight: 600;
}
.legal-body a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(200, 162, 92, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.legal-body a:hover {
    color: var(--ivory, #ede5d6);
    text-decoration-color: var(--ivory, #ede5d6);
}

.legal-back {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(237, 229, 214, 0.10);
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
}
.legal-back a {
    color: rgba(237, 229, 214, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.legal-back a:hover { color: var(--gold); }

/* ===================================================================== */
/* 404                                                                   */
/* ===================================================================== */
.notfound-stage {
    text-align: center;
    padding-top: clamp(8rem, 18vh, 12rem);
    padding-bottom: clamp(6rem, 14vh, 10rem);
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.notfound-code {
    font-family: var(--display, 'Syne', sans-serif);
    font-weight: 800;
    font-size: clamp(8rem, 24vw, 18rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(200, 162, 92, 0.35);
    margin: 0 0 1.5rem;
    user-select: none;
    background: linear-gradient(180deg, rgba(200, 162, 92, 0.18) 0%, transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
}
.notfound-title {
    font-family: var(--serif, serif);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--ivory, #ede5d6);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}
.notfound-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
}
.notfound-text {
    font-family: var(--body, 'Onest', sans-serif);
    font-size: 1.05rem;
    color: rgba(237, 229, 214, 0.7);
    max-width: 520px;
    line-height: 1.65;
    margin: 0 0 2.5rem;
}
.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.notfound-secondary {
    font-family: var(--body, 'Onest', sans-serif);
    font-size: 0.92rem;
    color: rgba(237, 229, 214, 0.7);
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 100px;
    border: 1px solid rgba(237, 229, 214, 0.12);
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.notfound-secondary:hover {
    color: var(--gold);
    border-color: rgba(200, 162, 92, 0.4);
    background: rgba(200, 162, 92, 0.06);
}
.notfound-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
}
.notfound-suggestions a {
    color: rgba(237, 229, 214, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.notfound-suggestions a:hover {
    color: var(--gold);
}
.notfound-suggestions li::before {
    content: '→ ';
    color: rgba(200, 162, 92, 0.5);
    margin-right: 0.3rem;
}

@media (max-width: 600px) {
    .notfound-code { -webkit-text-stroke-width: 1px; }
    .notfound-actions { flex-direction: column; width: 100%; max-width: 360px; margin-inline: auto; }
    .notfound-actions > * { width: 100%; justify-content: center; }
}
