/* the public offer and the privacy policy: the bar and the card of the pages of guests, the text easy to read on a phone */
body {
    background-color: var(--page);
    color: var(--text);
}

.legal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    background-color: var(--brand);
}

.legal-bar a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.legal-bar .legal-login {
    font-weight: 400;
    font-size: 16px;
}

main.legal-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto auto auto;
    padding: 20px 16px 28px 16px;
    box-sizing: border-box;
}

.legal-card {
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    font-size: 16px;
    line-height: 1.6;
}

.legal-title {
    margin: 0 0 4px 0;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
}

.legal-date {
    margin: 0 0 16px 0;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.legal-lead {
    margin: 16px 0 8px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background-color: var(--brand-soft);
}

.legal-card h2 {
    margin: 28px 0 10px 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 18px;
    line-height: 1.35;
    color: var(--brand-strong);
}

.legal-intro {
    margin: 0 0 8px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* clauses keep their own numbers (1.1, 1.2): no marks of the list, a little space between them */
ol.legal-clauses {
    margin: 0;
    padding: 0;
    list-style: none;
}

ol.legal-clauses > li {
    margin: 0 0 10px 0;
}

ol.legal-clauses > li > strong:first-child {
    color: var(--text);
}

.legal-card ul, .legal-card ol[type="a"] {
    margin: 6px 0 0 0;
    padding-left: 24px;
}

.legal-card ul {
    list-style: disc;
}

.legal-card ul li, .legal-card ol[type="a"] li {
    margin-bottom: 4px;
}

.legal-meta {
    margin: 8px 0 0 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--page);
}

.legal-closing {
    margin: 24px 0 0 0;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.legal-contacts {
    margin: 0;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    margin-top: 8px;
    color: var(--brand);
}

@media (max-width: 600px) {
    .legal-card {
        padding: 16px;
        font-size: 15px;
    }

    .legal-title {
        font-size: 18px;
    }

    .legal-card h2 {
        font-size: 17px;
    }
}
