/* Pages légales (mentions, CGU, confidentialité) : sorti des pages pour la CSP stricte. */

html, body {
    overflow: auto !important;
    height: auto !important;
}

.legal-wrapper {
    min-height: 100vh;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.legal-header {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.legal-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    transition: color 0.2s, background 0.2s;
}

.legal-header a:hover {
    color: var(--text-heading);
    background: var(--bg-hover);
}

.legal-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.legal-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.legal-card {
    width: 100%;
    max-width: 760px;
    background: var(--bg-dark);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 48px 52px;
}

.legal-card h1 {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.legal-card .legal-subtitle {
    font-size: 0.85em;
    color: var(--text-muted);
    margin: 0 0 40px;
}

.legal-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section-label {
    font-size: 0.72em;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
}

.legal-section h2 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 12px;
}

.legal-section p,
.legal-section address {
    font-size: 0.93em;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0 0 8px;
    font-style: normal;
}

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

.legal-section a {
    color: var(--accent-light);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section ul {
    font-size: 0.93em;
    color: var(--text-main);
    line-height: 1.7;
    margin: 8px 0 8px 20px;
    padding: 0;
}

.legal-section ul li {
    margin-bottom: 4px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-glass);
    color: var(--accent-light);
    border: 1px solid rgba(78, 207, 166, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78em;
    font-weight: 700;
    margin-bottom: 14px;
}

.legal-footer {
    margin-top: 32px;
    font-size: 0.78em;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 28px 22px;
    }
    .legal-wrapper {
        padding: 30px 12px;
    }
}
    
/* Affichée dans la fenêtre des documents légaux de l'app : ni en-tête ni pied */
.is-embedded .legal-header,
.is-embedded .legal-footer { display: none; }

.legal-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.legal-footer a {
    color: var(--accent-text);
    text-decoration: none;
}

.legal-spaced {
    margin-top: 12px;
}
