/* ===================================
   MENTIONS LÉGALES — Phoenix On Wire
   Styles spécifiques à cette page
   =================================== */

/* --- Hero mentions légales --- */
.legal-hero {
    background: linear-gradient(to right, #000000 0%, #0f0f0f 50%, #1a1a1a 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

body.light-mode .legal-hero {
    background: linear-gradient(to right, #f0f2f5 0%, #e9ecef 50%, #dee2e6 100%);
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 68, 216, 0.08) 0%, transparent 70%);
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 5%;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.06) 0%, transparent 70%);
}

.legal-hero h1 {
    color: var(--primary-orange);
    font-size: 3em;
    margin-bottom: 15px;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.legal-hero .tagline {
    font-size: 1em;
    color: var(--primary-cyan);
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.legal-hero .subtitle {
    font-size: 0.85em;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* --- Barre de navigation sticky --- */
.legal-toc-bar {
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 86px; /* hauteur du header principal */
    z-index: 90;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

body.light-mode .legal-toc-bar {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.legal-toc-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 20px;
}

.legal-toc-inner::-webkit-scrollbar { display: none; }

.legal-toc-inner a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-toc-inner a .toc-num {
    color: var(--primary-orange);
    font-size: 0.75em;
    opacity: 0.7;
}

.legal-toc-inner a:hover {
    color: var(--primary-cyan);
    border-bottom-color: var(--primary-cyan);
}

.legal-toc-inner a.active {
    color: var(--primary-cyan);
    border-bottom-color: var(--primary-cyan);
}

/* --- Layout principal --- */
.legal-main {
    background-color: var(--main-bg);
    padding: 70px 0 100px;
    transition: background-color 0.3s ease;
}

/* --- Sections --- */
.legal-section {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.legal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .section-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.section-num-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.3);
    color: var(--primary-orange);
    font-size: 0.75em;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.legal-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--heading-color);
    text-align: left;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.legal-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-cyan);
    margin: 28px 0 12px;
}

.legal-section p {
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 14px;
}

/* --- Info card --- */
.info-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 74, 0.15);
    overflow: hidden;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

body.light-mode .info-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.info-row:last-child { border-bottom: none; }

.info-row:hover {
    background: rgba(255, 107, 74, 0.04);
}

.info-label {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.6;
    flex: 0 0 200px;
    font-family: 'Montserrat', sans-serif;
}

.info-value {
    font-size: 0.88em;
    color: var(--heading-color);
    flex: 1;
}

.info-value a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--light-grey);
}

/* Badge inline */
.tag-badge {
    display: inline-block;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--primary-cyan);
    font-size: 0.72em;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

/* --- Note --- */
.legal-note {
    background: rgba(0, 217, 255, 0.04);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 0 8px 8px 0;
    padding: 14px 20px;
    font-size: 0.83em;
    color: var(--text-color);
    margin: 16px 0;
    line-height: 1.7;
    transition: background 0.3s ease;
}

.legal-note.orange {
    background: rgba(255, 107, 74, 0.04);
    border-left-color: var(--primary-orange);
}

.legal-note strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* --- Grille des droits --- */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
}

.right-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(184, 68, 216, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82em;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.right-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(184, 68, 216, 0.15);
}

.right-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-purple);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(184, 68, 216, 0.5);
}

/* --- Bouton retour en haut --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 74, 0.15);
    border: 2px solid rgba(255, 107, 74, 0.4);
    border-radius: 50%;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-orange);
    color: #fff;
    box-shadow: var(--glow-orange);
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .legal-hero h1 { font-size: 2.2em; }
    .info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .info-label { flex: none; }
    .rights-grid { grid-template-columns: 1fr; }
    .legal-toc-inner a { padding: 12px 10px; font-size: 0.70em; }
    .legal-toc-bar { top: 72px; }
}

@media (max-width: 480px) {
    .legal-hero h1 { font-size: 1.8em; }
    .legal-section h2 { font-size: 1.2em; }
}
