/* Pages juridiques Vectisec : mentions légales, confidentialité, cookies, CGU, CGV.
   Gabarit : page-mentions-legales.php (« Document juridique Vectisec »). */

/* ===== RESET BLOCKSY ===== */
body, .site-content, .site-main, #content, .entry-content { background-color: #FBFAF7 !important; }
.ct-container:not(.ct-header-container):not(.ct-footer-container):not(.ct-topbar-container) { max-width: 100% !important; padding: 0 !important; }
#primary, .site-main, #content, .entry-content, .page-content, .ct-post-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; float: none !important; }

/* ===== PAGE ===== */
#vectisec-legal-page {
    --lg-ink: #0f2a43;
    --lg-text: #3f4b5b;
    --lg-muted: #5f6b7a;
    --lg-blue: #0077b6;
    --lg-blue-dark: #1f4f74;
    --lg-line: #e7e3da;
    --lg-soft: #f4f1eb;
    font-family: 'Poppins', sans-serif;
    background-color: #FBFAF7;
    color: var(--lg-text);
    width: 100%;
    display: block;
}
#vectisec-legal-page * { box-sizing: border-box; }
#vectisec-legal-page h1,
#vectisec-legal-page h2,
#vectisec-legal-page h3 { font-family: 'Jost', 'Poppins', sans-serif; color: var(--lg-ink); text-wrap: balance; }

/* ===== HERO ===== */
#vectisec-legal-page .legal-hero {
    background: linear-gradient(135deg, #326586 0%, #29587e 45%, #1b3e5f 100%);
    padding: clamp(48px, 7vw, 88px) 24px clamp(36px, 5vw, 60px);
    text-align: center;
}
#vectisec-legal-page .legal-hero-inner { max-width: 880px; margin: 0 auto; }
#vectisec-legal-page .legal-badge {
    display: inline-block; padding: 6px 14px; margin-bottom: 18px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: #e6f1f8; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px;
}
#vectisec-legal-page .legal-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.12;
    color: #ffffff !important; margin: 0 0 12px;
}
#vectisec-legal-page .legal-hero-date { color: rgba(230, 241, 248, 0.88); font-size: 0.95rem; margin: 0 0 28px; }

/* Passage d'un document juridique à l'autre */
#vectisec-legal-page .legal-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#vectisec-legal-page .legal-doc {
    display: inline-block; padding: 9px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none;
    color: #ffffff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease, color 0.2s ease;
}
#vectisec-legal-page .legal-doc:hover,
#vectisec-legal-page .legal-doc:focus-visible { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
#vectisec-legal-page .legal-doc.is-current { background: #ffffff; color: var(--lg-blue-dark); border-color: #ffffff; }
#vectisec-legal-page .legal-doc:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* ===== MISE EN PAGE ===== */
#vectisec-legal-page .legal-layout {
    max-width: 1160px; margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 24px clamp(56px, 7vw, 96px);
    display: grid; gap: 24px;
}
@media (min-width: 1024px) {
    #vectisec-legal-page .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
}

/* Sommaire */
#vectisec-legal-page .legal-toc-box { background: #ffffff; border: 1px solid var(--lg-line); border-radius: 16px; padding: 14px 18px; }
#vectisec-legal-page .legal-toc summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--lg-ink); }
#vectisec-legal-page .legal-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
#vectisec-legal-page .legal-toc a {
    display: block; padding: 7px 10px; border-radius: 8px; border-left: 2px solid transparent;
    font-size: 13.5px; line-height: 1.4; color: var(--lg-text); text-decoration: none;
}
#vectisec-legal-page .legal-toc a:hover { background: var(--lg-soft); color: var(--lg-ink); }
#vectisec-legal-page .legal-toc a.is-active { background: #eef5fa; border-left-color: var(--lg-blue); color: var(--lg-blue-dark); font-weight: 500; }
@media (min-width: 1024px) {
    #vectisec-legal-page .legal-toc { position: sticky; top: 128px; max-height: calc(100vh - 148px); overflow: auto; }
    #vectisec-legal-page .legal-toc summary { list-style: none; pointer-events: none; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lg-muted); }
    #vectisec-legal-page .legal-toc summary::-webkit-details-marker { display: none; }
}

/* ===== CARTES ===== */
#vectisec-legal-page .legal-content { min-width: 0; }
#vectisec-legal-page .legal-card {
    background: #ffffff; border: 1px solid var(--lg-line); border-radius: 20px;
    padding: clamp(22px, 3.5vw, 40px); margin: 0 0 20px;
    box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04);
    scroll-margin-top: 128px;
}
#vectisec-legal-page .legal-intro { background: #f3f7fa; border-color: #dbe7f0; }
#vectisec-legal-page .legal-card h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.3;
    margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--lg-line);
}
#vectisec-legal-page .legal-card h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 10px; }
#vectisec-legal-page .legal-card p,
#vectisec-legal-page .legal-card li { font-size: 15.5px; line-height: 1.75; }
#vectisec-legal-page .legal-card p { margin: 0 0 14px; }
#vectisec-legal-page .legal-card ul,
#vectisec-legal-page .legal-card ol { margin: 0 0 16px; padding-left: 1.25rem; }
#vectisec-legal-page .legal-card li { margin-bottom: 6px; }
#vectisec-legal-page .legal-card li::marker { color: var(--lg-blue); }
#vectisec-legal-page .legal-card strong { color: var(--lg-ink); font-weight: 600; }
#vectisec-legal-page .legal-card a { color: var(--lg-blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
#vectisec-legal-page .legal-card a:hover { color: var(--lg-blue-dark); }
#vectisec-legal-page .legal-card > :last-child { margin-bottom: 0; }

/* Tableaux : défilement horizontal sur petit écran */
#vectisec-legal-page .legal-table { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--lg-line); border-radius: 12px; }
#vectisec-legal-page .legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 14px; }
#vectisec-legal-page .legal-table th,
#vectisec-legal-page .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--lg-line); line-height: 1.55; }
#vectisec-legal-page .legal-table tr:last-child td { border-bottom: 0; }
#vectisec-legal-page .legal-table th { background: var(--lg-soft); color: var(--lg-ink); font-weight: 600; }

#vectisec-legal-page .legal-contact { text-align: center; color: var(--lg-muted); font-size: 14px; margin: 28px 0 0; }
#vectisec-legal-page .legal-contact a { color: var(--lg-blue); }

@media (max-width: 640px) {
    #vectisec-legal-page .legal-doc { padding: 8px 14px; font-size: 13px; }
    #vectisec-legal-page .legal-card p,
    #vectisec-legal-page .legal-card li { font-size: 15px; }
}
