/* ======================================
   STYLES JURIDIQUES PREMIUM - KROMATIC
   ====================================== */

/* Variables spécifiques juridiques */
:root {
    --legal-text-color: #E8E8E8;
    --legal-heading-color: #FFFFFF;
    --legal-link-color: #A7E2FF;
    --legal-link-hover: #d6f1ff;
    --legal-bg-section: rgba(255, 255, 255, 0.02);
    --legal-border-color: rgba(167, 226, 255, 0.15);
}

/* ======================================
   NAVBAR DES PAGES JURIDIQUES
   ====================================== */

.legal-page .navbar {
    background: rgba(3, 3, 33, 0.95);
    backdrop-filter: blur(10px);
}

.legal-page .logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.legal-page .logo-text:hover {
    color: #A7E2FF;
    transform: translateY(-1px);
}

/* Cache le logo image si présent */
.legal-page .navbar-logo {
    display: none;
}

/* ======================================
   LAYOUT PRINCIPAL
   ====================================== */

.legal-page {
    min-height: 100vh;
    padding: 140px 0 80px;
    background: var(--bg-dark);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ======================================
   TITRE PRINCIPAL
   ====================================== */

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    color: var(--legal-heading-color);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #A7E2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================================
   INTRODUCTION
   ====================================== */

.legal-intro {
    background: var(--legal-bg-section);
    border: 1px solid var(--legal-border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
}

.legal-intro p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--legal-text-color);
    margin-bottom: 15px;
}

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

.legal-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ======================================
   SECTIONS
   ====================================== */

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(167, 226, 255, 0.1);
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 60px;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 24px);
    font-weight: 700;
    color: var(--legal-heading-color);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 600;
    color: var(--legal-heading-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section h4 {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-section p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--legal-text-color);
    margin-bottom: 18px;
    max-width: 100%;
}

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

/* ======================================
   LISTES
   ====================================== */

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.legal-list li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--legal-text-color);
    padding-left: 30px;
    margin-bottom: 14px;
    position: relative;
}

.legal-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--legal-link-color);
    font-weight: 600;
}

.legal-list li strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* ======================================
   LIENS
   ====================================== */

.legal-section a,
.legal-intro a {
    color: var(--legal-link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(167, 226, 255, 0.3);
}

.legal-section a:hover,
.legal-intro a:hover {
    color: var(--legal-link-hover);
    border-bottom-color: var(--legal-link-hover);
}

/* ======================================
   BOUTON RETOUR
   ====================================== */

.legal-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(167, 226, 255, 0.1);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: rgba(167, 226, 255, 0.08);
    border: 1px solid var(--legal-border-color);
    border-radius: 8px;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home .btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-back-home:hover {
    background: rgba(167, 226, 255, 0.15);
    border-color: var(--legal-link-color);
    transform: translateY(-2px);
}

.btn-back-home:hover .btn-icon {
    transform: translateX(-4px);
}

/* ======================================
   FOOTER JURIDIQUE
   ====================================== */

.footer-legal {
    text-align: center;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--legal-link-color);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.footer-compliance {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
    margin: 0 auto 15px;
    font-style: italic;
}

.footer-trademark {
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

/* Affichage conditionnel de la mention marque déposée */
.footer-trademark[data-trademark="false"],
.trademark-notice[data-trademark="false"] {
    display: none;
}

.footer-trademark[data-trademark="true"]::before,
.trademark-notice[data-trademark="true"]::before {
    content: 'KROMATIC est une marque déposée.';
}

/* ======================================
   MENTION FORMULAIRE RGPD
   ====================================== */

.form-legal-notice {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 25px;
    padding: 20px;
    background: rgba(167, 226, 255, 0.03);
    border: 1px solid rgba(167, 226, 255, 0.1);
    border-radius: 8px;
}

.form-legal-notice a {
    color: var(--legal-link-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 226, 255, 0.3);
    transition: all 0.3s ease;
}

.form-legal-notice a:hover {
    color: var(--legal-link-hover);
    border-bottom-color: var(--legal-link-hover);
}

/* ======================================
   BANDEAU COOKIES
   ====================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.98) 0%, rgba(30, 30, 40, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(167, 226, 255, 0.2);
    padding: 25px 30px;
    z-index: 10000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cookie-banner-text a {
    color: var(--legal-link-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 226, 255, 0.3);
}

.cookie-banner-text a:hover {
    color: var(--legal-link-hover);
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #A7E2FF 0%, #8DA8FC 100%);
    color: var(--dark);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #d6f1ff 0%, #A7E2FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 226, 255, 0.4);
}

.cookie-btn-refuse {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-customize {
    background: transparent;
    color: var(--legal-link-color);
    border: 1px solid rgba(167, 226, 255, 0.3);
}

.cookie-btn-customize:hover {
    background: rgba(167, 226, 255, 0.1);
    border-color: var(--legal-link-color);
}

/* ======================================
   RESPONSIVE
   ====================================== */

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-container {
        padding: 0 20px;
    }

    .legal-title {
        margin-bottom: 40px;
    }

    .legal-intro {
        padding: 20px;
        margin-bottom: 35px;
    }

    .legal-section {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .legal-section h2 {
        margin-bottom: 15px;
    }

    .legal-list li {
        padding-left: 25px;
        font-size: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links .separator {
        display: none;
    }

    .cookie-banner {
        padding: 20px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-intro p {
        font-size: 15px;
    }

    .legal-section p {
        font-size: 15px;
    }

    .legal-list li {
        font-size: 14px;
    }

    .btn-back-home {
        width: 100%;
        justify-content: center;
    }
}
