:root {
    --black: #202124;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-soft: #E8EAED;
    --gray-mid: #5F6368;
    --gray-border: #DADCE0;
    --sky-blue: #1A73E8;
    --sky-blue-dark: #1557B0;
    --mono-font: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   STRUCTURE COMMUNE
========================================= */
.wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 42px 80px 42px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--sky-blue);
}

h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

/* =========================================
   PAGE D'ACCUEIL (INDEX)
========================================= */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-blue);
    color: var(--white);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 40px;
}

.action-btn:hover {
    background: var(--sky-blue-dark);
}

.direct-link-container {
    background: var(--gray-light);
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid var(--gray-border);
    width: 100%;
}

.direct-link-label {
    display: block;
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--gray-mid);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.direct-link {
    font-family: var(--mono-font);
    font-size: 14px;
    color: var(--sky-blue);
    word-break: break-all;
    margin: 0;
}

/* =========================================
   PAGES LÉGALES
========================================= */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-border);
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
    padding: 16px 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--sky-blue-dark);
    text-decoration: underline;
}

.last-updated {
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--gray-mid);
    text-transform: uppercase;
}

.legal-section {
    margin-bottom: 40px;
    flex: 1; /* Permet d'occuper l'espace pour repousser le footer en bas */
}

.legal-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.legal-section p, .legal-section ul {
    font-size: 15px;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 24px;
    list-style-type: disc;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section strong {
    font-weight: 600;
    color: var(--black);
}

.legal-link {
    color: var(--sky-blue);
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

/* =========================================
   PIED DE PAGE (FOOTER COMMUN)
========================================= */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-border);
    display: flex;
    gap: 24px;
}

/* Style des liens dans le footer (Index) */
footer a {
    font-size: 13px;
    color: var(--gray-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--sky-blue);
    text-decoration: underline;
}

/* Style du texte de copyright (Pages légales) */
footer p {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--gray-mid);
    font-family: var(--mono-font);
    text-transform: uppercase;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 600px) {
    .wrapper { padding: 100px 24px 60px 24px; }
    .top-nav { padding: 16px 24px; }
    h1 { font-size: 26px; }
    footer { flex-direction: column; gap: 16px; align-items: center; }
}