/* The privacy policy, terms and Impressum on the website: the bot's own pages, written into the site by the
   bot's repository (see the README) and dressed here like the rest of it. Loaded after site.css. */

body.legal {
    padding: 0 var(--gutter) 5rem;
}

.policy {
    max-width: 52rem;
    margin-inline: auto;
}

.legal-home {
    padding-block: 1.5rem 3.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.legal-home a {
    text-decoration: none;
}

.policy h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.policy header p {
    margin-top: 1rem;
    color: var(--paper-soft);
}

.policy h2 {
    margin: 3rem 0 0.9rem;
    font-size: 1.75rem;
}

.policy section p,
.policy section ul {
    margin-top: 0.8rem;
    color: #d8cde4;
}

.policy section ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.policy li + li {
    margin-top: 0.45rem;
}

.policy a {
    color: #d6b3ea;
}

/* A command's name, light on dark here (site.css sets it for the daylight part of the home page) */
.policy code {
    background: rgba(239, 232, 245, 0.1);
    color: var(--paper);
}

.policy-table {
    margin-top: 1.25rem;
    overflow-x: auto;
}

.policy table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.policy th,
.policy td {
    padding: 0.85rem 1rem 0.85rem 0;
    border-top: 1px solid var(--line-night);
    text-align: left;
    vertical-align: top;
}

.policy thead th {
    border-top: 0;
    color: var(--paper-soft);
    font-weight: 400;
}

.policy td {
    color: #d8cde4;
}

.policy footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-night);
    color: var(--paper-soft);
}

@media (max-width: 46rem) {
    /* Each row of the table becomes a block, its cells one under the other with what they are */
    .policy thead {
        display: none;
    }

    .policy tr,
    .policy th,
    .policy td {
        display: block;
        padding-right: 0;
    }

    .policy td {
        border-top: 0;
        padding-top: 0;
    }

    .policy td::before {
        content: attr(data-label) ': ';
        color: var(--paper-soft);
    }
}
