/* Kept tight under the site header: 1rem above the title (1.5rem from 768px), and the same between the title's rule
   and the text. They were 2rem/3rem above the title and 4rem/5rem below it. */
.regulatory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.regulatory-container h1 {
    color: var(--web-color);
    /* The subtitle size, not the title one: the hero title (48px on desktop) is far too large over reading text. */
    font-size: var(--web-subtitle-font-size);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--web-secondary-background-color);
    padding-bottom: 1rem;
}

.regulatory-content {
    padding: 0 2rem 2rem;
    border-radius: var(--web-border-radius);
    margin-bottom: 2rem;
}

.regulatory-content a {
    /* An email address or URL is one unbreakable token; at 320px with a 24px root the support address ran 37px off
       the page (WCAG 1.4.10). Let it break anywhere. */
    overflow-wrap: anywhere;
    /* Every link here sits in running text, list items included. The layout underlines links in a <p> only, and the
       link colour is 2.70:1 against the text, short of the 3:1 that lets colour alone mark a link (WCAG 1.4.1). */
    text-decoration: underline;
}

/* These pages are reading text, so paragraphs and list items share the site's body size (16px, 18px from 768px).
   Paragraphs used the hero's "wordy" size (24px on desktop) while list items stayed at the body size, so the text
   changed size within a section. */
.regulatory-content :is(p, li) {
    font-size: var(--web-default-font-size);
    line-height: 1.6;
}

.regulatory-content p {
    margin-bottom: 1rem;
}

/* Headings step down from the h1 without dwarfing the text; Bootstrap's defaults (32px, 28px) did. */
.regulatory-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.regulatory-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

/* ...except at the very top, where the space under the title is already set (Privacy opens with an h2). */
.regulatory-content > :first-child,
.regulatory-content > section:first-child > :first-child {
    margin-top: 0;
}

/* An in-page link scrolls its target to the top, under the sticky site header (4.5rem tall on a phone, 5.5rem from
   768px, in rem so it grows with the text). Stop the target clear of it. */
.regulatory-content [id] {
    scroll-margin-top: 7rem;
}

/* Marks text still to be filled in. Bootstrap's own .placeholder (a loading skeleton) makes it half transparent, which
   painted the old red on yellow at 3:1 over the page; opacity is restored, and dark red on yellow is 9.4:1. */
.placeholder {
    background-color: #ffeb3b;
    color: #7a0000;
    opacity: 1;
    padding: 2px 4px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .regulatory-container {
        padding: 1.5rem 2rem 3rem;
    }

    .regulatory-container h1 {
        margin-bottom: 1.5rem;
    }

    .regulatory-content {
        padding: 0 3rem 3rem;
    }
}