/* Page confidentialité : texte long, lu de gauche à droite, largeur de lecture bornée. */

.content.rgpd {
    align-items: stretch;
    max-width: 52rem;
}

.rgpd-header {
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.rgpd-header h1 {
    margin-bottom: 0.75rem;
}

.content .rgpd-lead {
    color: var(--text-muted);
    max-width: 38rem;
    margin: 0 auto 0.75rem;
    line-height: 1.7;
}

.content .rgpd-updated {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--label);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    margin: 0;
}

/* Responsable + hébergeur : deux cartes côte à côte dès qu'il y a la place. */
.rgpd-identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rgpd-card {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.content .rgpd-card h2 {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--label);
    text-align: left;
}

.content .rgpd-card p {
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.rgpd-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.rgpd-section:last-of-type {
    border-bottom: none;
}

.content .rgpd-section h2 {
    text-align: left;
    margin: 0 0 0.875rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent);
    line-height: 1.3;
}

.content .rgpd-section h3 {
    text-align: left;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.content .rgpd-section p {
    line-height: 1.7;
}

.rgpd-section ul {
    list-style: none;
    margin: 0 0 0.875rem;
    padding: 0;
}

.rgpd-section li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.rgpd-section li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.65em;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--accent);
}

.rgpd-section li strong {
    color: var(--text-main);
}

.rgpd-section code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-code-inline);
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
    color: var(--text-main);
}

.content .rgpd-note {
    font-size: 0.875rem;
    background: var(--accent-active);
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    margin-top: 0.5rem;
}

/* Droits : des étiquettes plutôt qu'une liste à puces. */
.rgpd-section ul.rgpd-rights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rgpd-section ul.rgpd-rights li {
    padding: 0.25rem 0.75rem;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-main);
}

.rgpd-section ul.rgpd-rights li::before {
    content: none;
}

.rgpd-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.rgpd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.rgpd-table th,
.rgpd-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.rgpd-table tr:last-child th,
.rgpd-table tr:last-child td {
    border-bottom: none;
}

.rgpd-table th {
    color: var(--text-main);
    font-weight: 600;
    width: 38%;
}

.rgpd-table td {
    color: var(--text-muted);
}

.rgpd-table tr:nth-child(even) {
    background: var(--bg-base);
}

.rgpd .back-link {
    text-align: center;
    margin-top: 1.5rem;
}

@media (min-width: 40rem) {
    .rgpd-identity {
        grid-template-columns: 1fr 1fr;
    }
}

/* Sur téléphone, le tableau passe en lignes empilées : pas de défilement horizontal. */
@media (max-width: 30rem) {
    .rgpd-table,
    .rgpd-table tbody,
    .rgpd-table tr,
    .rgpd-table th,
    .rgpd-table td {
        display: block;
        width: 100%;
    }

    .rgpd-table th {
        padding-bottom: 0.125rem;
        border-bottom: none;
    }

    .rgpd-table td {
        padding-top: 0;
    }
}
