:root {
    --fin-bg: #131722;
    --fin-panel: #1e222d;
    --fin-border: #2a2e39;
    --fin-text-muted: #787b86;
    --fin-text: #d1d4dc;
    --fin-text-light: #ffffff;
    --fin-green: #089981;
    --fin-red: #f23645;
    --fin-blue: #2962ff;
}

.etea-terms-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fin-text);
}

.etea-terms-header {
    margin-bottom: 40px;
    text-align: center;
}

.etea-section-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5em;
    color: var(--fin-green);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.etea-last-updated {
    font-size: 0.9em;
    color: var(--fin-text-muted);
    font-family: 'Share Tech Mono', monospace;
}

/* Layout Container */
.etea-terms-container {
    display: flex;
    gap: 40px;
    position: relative;
}

/* Sommaire (Sidebar) */
.etea-terms-sidebar {
    flex: 0 0 250px;
}

.etea-terms-toc {
    position: sticky;
    top: 100px;
}

.etea-terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--fin-border);
}

.etea-terms-toc li a {
    display: block;
    padding: 10px 20px;
    color: var(--fin-text-muted);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.etea-terms-toc li a span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8em;
    margin-right: 10px;
}

.etea-terms-toc li a:hover,
.etea-terms-toc li a.active {
    color: var(--fin-green);
    border-left-color: var(--fin-green);
    background: rgba(8, 153, 129, 0.05);
}

/* Content Area */
.etea-terms-content {
    flex: 1;
    background: var(--fin-panel);
    border: 1px solid var(--fin-border);
    border-radius: 8px;
    padding: 50px;
    line-height: 1.8;
}

.etea-terms-section {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.etea-terms-section h3 {
    color: var(--fin-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--fin-border);
    padding-bottom: 10px;
}

.etea-terms-section p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Alert Box Disclaimer */
.etea-alert-box-red {
    background: rgba(242, 54, 69, 0.1);
    border-left: 4px solid var(--fin-red);
    padding: 25px;
    border-radius: 4px;
    margin: 30px 0;
}

.etea-alert-title {
    color: var(--fin-red);
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 15px !important;
}

/* Button Utility */
.etea-btn-utility {
    display: inline-block;
    padding: 8px 20px;
    background: var(--fin-bg);
    border: 1px solid var(--fin-blue);
    color: var(--fin-blue);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    border-radius: 4px;
    transition: 0.3s;
}

.etea-btn-utility:hover {
    background: var(--fin-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(41, 98, 255, 0.4);
}

/* Back to top */
#etea-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--fin-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 100;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .etea-terms-container {
        flex-direction: column;
    }
    .etea-terms-sidebar {
        display: none; /* Cache le sommaire sur mobile pour plus de clarté */
    }
    .etea-terms-content {
        padding: 25px;
    }
}