/* =====================================================================
   Onex Shop — seo.css
   Style partagé par les pages légales : cgu.php, legal.php,
   privacy.php, cookies.php.
   ===================================================================== */

.onex-legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-top: 1.2rem;
}

.onex-legal-updated i { color: var(--turquoise-deep); }

/* ---------------------------------------------------------------------
   Mise en page (sommaire sticky + contenu)
   --------------------------------------------------------------------- */
.onex-legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    padding-block: 2.5rem 4rem;
}

/* ---------------------------------------------------------------------
   Sommaire
   --------------------------------------------------------------------- */
.onex-legal-toc {
    position: sticky;
    top: 6.5rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.onex-legal-toc h3 {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onex-legal-toc h3 i { color: var(--turquoise); }

.onex-legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: legal-toc;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.onex-legal-toc a {
    counter-increment: legal-toc;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--ink-soft);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.onex-legal-toc a::before {
    content: counter(legal-toc);
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--paper-dark);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.onex-legal-toc a:hover { background: var(--paper-dark); color: var(--ink); }

.onex-legal-toc a.is-active {
    background: var(--ink);
    color: var(--yellow);
}

.onex-legal-toc a.is-active::before { background: var(--yellow); color: var(--ink); }

/* ---------------------------------------------------------------------
   Contenu
   --------------------------------------------------------------------- */
.onex-legal-content { max-width: 820px; }

.onex-legal-section {
    padding-block: 1.6rem;
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 6rem;
}

.onex-legal-section:last-child { border-bottom: none; }

.onex-legal-section h2 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.onex-legal-section h2 span {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.onex-legal-section h3 {
    font-size: 1rem;
    text-transform: none;
    margin: 1.3rem 0 0.6rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.onex-legal-section p,
.onex-legal-section li {
    font-family: var(--font-body);
    color: var(--ink-soft);
    text-transform: none;
    font-size: 0.96rem;
    line-height: 1.8;
}

.onex-legal-section p { margin-bottom: 1.1rem; }

.onex-legal-section ul,
.onex-legal-section ol.onex-legal-list {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onex-legal-section strong { color: var(--ink); }

.onex-legal-section a.onex-legal-link {
    color: var(--turquoise-deep);
    font-weight: 600;
    text-decoration: underline;
}

.onex-legal-highlight {
    background: var(--paper-dark);
    border-left: 4px solid var(--turquoise);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.2rem;
}

.onex-legal-highlight p:last-child { margin-bottom: 0; }

.onex-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.3rem;
    font-size: 0.88rem;
}

.onex-legal-table th,
.onex-legal-table td {
    border: 1px solid var(--border-soft);
    padding: 0.7rem 0.9rem;
    text-align: left;
    color: var(--ink-soft);
}

.onex-legal-table th {
    background: var(--ink);
    color: var(--yellow);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.onex-legal-table tr:nth-child(even) td { background: var(--paper-dark); }

/* ---------------------------------------------------------------------
   Bouton retour en haut
   --------------------------------------------------------------------- */
.onex-back-to-top {
    position: fixed;
    right: 1.6rem;
    bottom: 6.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--ink);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--turquoise);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 140;
}

.onex-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 992px) {
    .onex-legal-layout { grid-template-columns: 1fr; }
    .onex-legal-toc { position: static; }
}

@media (max-width: 560px) {
    .onex-back-to-top { right: 1rem; bottom: 5.6rem; }
}