/* =========================================================
   VENTURI DECO — PAGES LÉGALES ET ERREUR 404
   ========================================================= */

/* =========================================================
   PAGES LÉGALES
   ========================================================= */

.legal-page {
    background: var(--color-background);
}

.legal-layout {
    display: grid;
    grid-template-columns:
        minmax(210px, 0.3fr)
        minmax(0, 0.7fr);

    gap: clamp(
        45px,
        8vw,
        100px
    );

    align-items: start;
}

/* Sommaire */
.legal-summary {
    position: sticky;
    top: calc(var(--header-height) + 40px);

    padding: var(--space-md);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    background: var(--color-surface);
}

.legal-summary__title {
    margin-bottom: var(--space-md);

    color: var(--color-white);

    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-summary__list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    list-style: none;
}

.legal-summary__link {
    display: block;

    padding-left: 14px;

    border-left: 1px solid var(--color-border);

    color: var(--color-text-muted);

    font-size: 0.78rem;
    line-height: 1.5;
}

.legal-summary__link:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

/* Contenu juridique */
.legal-content {
    max-width: 850px;
}

.legal-content__updated {
    display: inline-flex;

    margin-bottom: var(--space-lg);
    padding: 8px 13px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-round);

    color: var(--color-text-muted);

    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-content section {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);

    border-bottom: 1px solid var(--color-border);
}

.legal-content section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;

    border-bottom: 0;
}

.legal-content h2 {
    margin-bottom: var(--space-md);

    color: var(--color-orange);

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    line-height: 1.15;
}

.legal-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);

    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: var(--space-md);

    line-height: 1.9;
}

.legal-content ul,
.legal-content ol {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin:
        var(--space-md)
        0
        var(--space-md)
        22px;

    color: var(--color-text-muted);
}

.legal-content li {
    padding-left: 6px;

    line-height: 1.75;
}

.legal-content a {
    color: var(--color-orange);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.legal-content a:hover {
    color: var(--color-orange-light);
}

/* Information importante */
.legal-notice {
    margin-block: var(--space-lg);
    padding: var(--space-md);

    border-left: 3px solid var(--color-orange);
    background: var(--color-surface);
}

.legal-notice p:last-child {
    margin-bottom: 0;
}

/* Tableau juridique */
.legal-table-wrapper {
    width: 100%;
    overflow-x: auto;

    margin-block: var(--space-lg);
}

.legal-table {
    width: 100%;
    min-width: 620px;

    border: 1px solid var(--color-border);
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;

    border-bottom: 1px solid var(--color-border);

    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--color-surface-light);
    color: var(--color-white);

    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-table td {
    color: var(--color-text-muted);

    font-size: 0.82rem;
    line-height: 1.7;
}

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

.error-page {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100svh;
    padding:
        calc(var(--header-height) + 60px)
        var(--page-padding)
        60px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 106, 0, 0.12),
            transparent 45%
        ),
        var(--color-black);

    text-align: center;
}

.error-page__content {
    max-width: 850px;
}

.error-page__number {
    display: block;

    color: var(--color-orange);

    font-family: var(--font-title);
    font-size:
        clamp(
            8rem,
            25vw,
            18rem
        );

    line-height: 0.7;

    opacity: 0.2;
}

.error-page__title {
    position: relative;

    margin-top: -20px;
    margin-bottom: var(--space-md);
}

.error-page__text {
    max-width: 580px;
    margin:
        0
        auto
        var(--space-lg);
}

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