/* ==========================================================================
   DzakaTheme - Styles de Conformité Légale (Réglementation Française 2026)
   ========================================================================== */

/* 1. Pages Légales (Mise en page épurée et lisible) */
.legal-page-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px 50px;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.legal-page-container h2 {
    font-size: 1.35em;
    margin-top: 35px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e5e5;
    color: #222;
    text-transform: none;
    font-weight: 600;
}

.legal-page-container h3 {
    font-size: 1.1em;
    margin-top: 22px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.legal-page-container ul, 
.legal-page-container ol {
    margin-left: 20px;
    margin-bottom: 18px;
}

.legal-page-container li {
    margin-bottom: 6px;
}

.legal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-updated {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Cartes de Confidentialité Modernes */
.privacy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.privacy-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.privacy-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.privacy-card h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    color: #222 !important;
}

.privacy-card p {
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
    color: #555;
}

/* Encart Rétractation */
.retractation-notice-box {
    background-color: #fff8f5;
    border-left: 4px solid #ff9785;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #5a2e22;
}

.retractation-form-card {
    border: 1px dashed #bbb;
    padding: 24px;
    margin-top: 25px;
    background: #fdfdfd;
    border-radius: 8px;
    line-height: 1.8;
}

.retractation-form-card h3 {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Encadré Légal Obligatoire des Garanties (Art. L. 217-3 C. consom) */
.legal-notice-box {
    border: 2px solid #2c3e50 !important;
    background-color: #f8fafc !important;
    padding: 22px !important;
    margin: 28px 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.legal-notice-box h3 {
    color: #1a252f !important;
    font-weight: bold;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.15em !important;
    letter-spacing: 0.5px;
}

/* 2. Notice de Confidentialité Téléphonique au Checkout */
.phone-privacy-notice {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    font-style: italic;
}

/* 3. Pied de page - Barre de Liens Légaux */
.shop-isle-legal-bar {
    width: 100%;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

.shop-isle-legal-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.shop-isle-legal-bar li {
    display: inline-block;
}

.shop-isle-legal-bar a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-isle-legal-bar a:hover {
    color: #ff9785;
    text-decoration: underline;
}

/* 4. Bandeau de Consentement aux Cookies (Conforme CNIL 2026) */
#dzaka-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 620px;
    margin: 0 auto;
    background: #ffffff;
    color: #2b2b2b;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    animation: dzakaSlideUp 0.35s ease-out;
}

@keyframes dzakaSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#dzaka-cookie-banner h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

#dzaka-cookie-banner p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #555;
}

#dzaka-cookie-banner a {
    color: #e06d53;
    text-decoration: underline;
}

.dzaka-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Règle CNIL : Bouton refuser AUSSI mis en valeur et accessible que Accepter */
.dzaka-btn-cookie {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.dzaka-btn-accept {
    background-color: #2b2b2b;
    color: #ffffff;
    border-color: #2b2b2b;
}

.dzaka-btn-accept:hover {
    background-color: #ff9785;
    border-color: #ff9785;
    color: #ffffff;
}

.dzaka-btn-refuse {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.dzaka-btn-refuse:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.dzaka-btn-settings {
    flex: 1 1 100%;
    background: transparent;
    color: #64748b;
    border: none;
    font-size: 12px;
    padding: 6px 0;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
}

.dzaka-btn-settings:hover {
    color: #1e293b;
}

/* Bouton permanent de rappel gestion des cookies */
.dzaka-cookie-trigger-btn {
    background: none;
    border: none;
    padding: 0;
    color: #bbb;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.dzaka-cookie-trigger-btn:hover {
    color: #ff9785;
    text-decoration: underline;
}

@media (max-width: 480px) {
    #dzaka-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }
    .dzaka-btn-cookie {
        flex: 1 1 100%;
    }
}
