/* ─────────────────────────────────────
   SANDGUARD CGU PAGE
   CSS autonome — aucun besoin de contact.css ni index.css
───────────────────────────────────── */

/* ─────────────────────────────────────
   TOKENS & RESET
───────────────────────────────────── */

:root {
    --bg-base: #04061a;
    --bg-mid: #070c2a;
    --bg-card: #0b1035;
    --bg-card2: #0d1440;

    --purple: #8b3dff;
    --purple-light: #a855f7;
    --purple-glow: rgba(139, 61, 255, 0.35);

    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.2);

    --text-primary: #e2e8f7;
    --text-secondary: #7a8ab5;
    --text-muted: #3d4f7a;

    --border: rgba(139, 61, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);

    --danger: #f43f5e;
    --warn: #f59e0b;
    --safe: #10b981;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 25%, rgba(139, 61, 255, 0.13) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(34, 211, 238, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 55% 55%, rgba(139, 61, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.025) 2px,
        rgba(0, 0, 0, 0.025) 4px
    );
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
}

/* ─────────────────────────────────────
   NAV
───────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 68px;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgb(18, 17, 35);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    display: block;
    max-width: 200px;
    height: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.d-inline {
    display: inline;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(4, 6, 26, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px clamp(20px, 4vw, 48px);
    flex-direction: column;
    gap: 16px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    transition: color .2s;
}

.mobile-menu a:hover {
    color: var(--purple-light);
}

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 9px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    border: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(139, 61, 255, 0.08);
}

.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 18px var(--purple-glow);
}

.btn-primary:hover {
    background: var(--purple-light);
    box-shadow: 0 0 28px rgba(139, 61, 255, 0.5);
    transform: translateY(-1px);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: rgba(244, 63, 94, 0.08);
    border-color: var(--danger);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

/* ─────────────────────────────────────
   PAGE / HERO
───────────────────────────────────── */

.page {
    position: relative;
    z-index: 1;
    padding-top: 68px;
    min-height: 100vh;
}

.legal-page {
    position: relative;
    z-index: 1;
}

.page-hero {
    padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px);
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--purple-light);
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid rgba(139, 61, 255, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 28px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 20px;
}

.page-hero h1 .grad {
    background: linear-gradient(135deg, #a78bfa, #8b3dff, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─────────────────────────────────────
   LEGAL LAYOUT
───────────────────────────────────── */

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(20px, 3vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px) 80px;
    align-items: start;
}

.legal-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: clamp(26px, 4vw, 44px);
}

.legal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(139, 61, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 95% 10%, rgba(34, 211, 238, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.legal-content {
    position: relative;
    z-index: 1;
}

.legal-intro {
    margin-bottom: 28px;
    padding: 20px 22px;
    background: rgba(139, 61, 255, 0.06);
    border: 1px solid rgba(139, 61, 255, 0.18);
    border-radius: 14px;
}

.legal-intro p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.legal-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 12px var(--purple-glow);
}

/* ─────────────────────────────────────
   SECTIONS
───────────────────────────────────── */

.legal-section {
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
}

.legal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-section:last-of-type {
    padding-bottom: 0;
}

.legal-anchor-offset {
    scroll-margin-top: 96px;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.legal-section h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(139, 61, 255, 0.12);
    border: 1px solid rgba(139, 61, 255, 0.24);
    color: var(--purple-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(139, 61, 255, 0.12);
}

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

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

.legal-section strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-section a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color .2s;
}

.legal-section a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

/* ─────────────────────────────────────
   LISTS
───────────────────────────────────── */

.legal-section ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 16px 0 18px;
}

.legal-section li {
    position: relative;
    padding: 12px 14px 12px 38px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 20px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 14px var(--purple-glow);
}

/* ─────────────────────────────────────
   NOTICE
───────────────────────────────────── */

.legal-notice {
    margin-top: 30px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.legal-notice p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.legal-notice strong {
    color: var(--warn);
}

/* ─────────────────────────────────────
   SIDEBAR
───────────────────────────────────── */

.legal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
}

.legal-side-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-side-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.legal-summary {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.legal-summary a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.legal-summary a:hover {
    background: rgba(139, 61, 255, 0.06);
    border-color: rgba(139, 61, 255, 0.28);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.legal-summary a span {
    color: var(--purple-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
}

/* Contact card */

.legal-contact-card {
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.1) 0%, rgba(34, 211, 238, 0.04) 100%);
    border: 1px solid rgba(139, 61, 255, 0.25);
    border-radius: 16px;
    padding: 24px;
}

.legal-contact-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.legal-contact-card h3::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--safe);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.legal-contact-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.legal-contact-card a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--purple-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-decoration: none;
}

.legal-contact-card a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

/* Status card */

.legal-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
}

.legal-status-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.legal-status-name {
    color: var(--text-secondary);
    font-size: 13px;
}

.legal-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--safe);
}

.legal-status-dot::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--safe);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-light);
    padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 15px;
    font-weight: 700;
}

.footer-logo .s2 {
    color: var(--purple-light);
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--purple-light);
}

/* ─────────────────────────────────────
   ANIMATIONS
───────────────────────────────────── */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.fade-up {
    animation: fadeUp .6s ease both;
}

.fade-up-1 {
    animation-delay: .08s;
}

.fade-up-2 {
    animation-delay: .16s;
}

.fade-up-3 {
    animation-delay: .24s;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */

@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .legal-side-card,
    .legal-contact-card,
    .legal-status-card {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    .btn {
        padding: 8px 13px;
        font-size: 12px;
    }

    .nav-logo-img {
        max-width: 165px;
    }

    .legal-layout {
        padding-bottom: 60px;
    }

    .legal-card {
        padding: 24px;
    }

    .legal-sidebar {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 24px 0;
    }

    .legal-section h2 {
        align-items: flex-start;
    }

    .legal-section h2 span {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 11px;
    }

    .legal-section li {
        padding: 11px 12px 11px 34px;
    }

    .legal-section li::before {
        left: 14px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        letter-spacing: -0.5px;
    }

    .legal-card {
        border-radius: 16px;
        padding: 20px;
    }

    .legal-intro {
        padding: 16px;
    }

    .legal-meta {
        flex-direction: column;
    }

    .legal-pill {
        width: 100%;
    }

    .legal-summary a {
        align-items: flex-start;
    }

    .footer-links {
        gap: 14px;
    }
}