/* The policy pages.

   Long prose on a near black site, which is the hardest thing here to make readable:
   a wall of light text on black at the length these run to is tiring within a
   paragraph. So the text sits on a panel a shade lighter than the page, at a measure
   short enough to read, with the spacing a long document needs rather than the spacing
   a landing page uses.

   Loaded only by these pages, like missing.css, rather than added to the stylesheet
   every page pays for.

   Note for anything added here later: style.css styles the bare `header` element as the
   site's fixed navigation. Nothing in this page may use header, footer, section or nav
   as an element, or it inherits that. */

.legal-page {
    /* Clears the fixed 50px navigation, then gives the page room to start. */
    padding: 7rem 1.25rem 5rem;
    background-color: var(--secondary-color, #1e1e1e);
}

.legal {
    max-width: 44rem;
    margin: 0 auto;
}

/* ----- The heading ----- */

.legal-head {
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(255, 215, 0, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color, #FFD700);
}

.legal-title {
    margin: 0;
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-color, #ffffff);
}

.legal-summary {
    margin: 0.85rem 0 0;
    max-width: 34rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color-secondary, #cccccc);
}

/* A policy with no date is a policy nobody can tell has changed. */
.legal-updated {
    margin: 1.5rem 0 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.legal-updated time {
    color: var(--primary-color, #FFD700);
}

/* ----- The text -----

   On its own surface, one step off the page. Long prose directly on the background
   has nothing holding it, and the eye loses the column on a wide screen. */

.legal-body {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.022);
}

/* 1.05rem at 1.8 is the difference between a page somebody reads and one they close. */
.prose-text {
    margin: 0 0 1.4rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(235, 238, 242, 0.86);
}

.prose-text:last-child {
    margin-bottom: 0;
}

/* Space above a heading, and much less below it, so each one reads as belonging to
   what follows rather than floating between two blocks. */
.prose-heading {
    margin: 2.75rem 0 1.1rem;
    padding-top: 0.35rem;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-color, #ffffff);
}

.prose-heading:first-child {
    margin-top: 0;
    padding-top: 0;
}

.prose-list {
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.prose-list:last-child {
    margin-bottom: 0;
}

.prose-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.85rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(235, 238, 242, 0.82);
}

.prose-list li:last-child {
    margin-bottom: 0;
}

/* Drawn rather than a list marker, so its colour and position are identical in every
   browser instead of nearly so. */
.prose-list li::before {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color, #FFD700);
}

/* ----- The foot ----- */

.legal-foot {
    margin-top: 2.5rem;
}

.legal-foot-line {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color-secondary, #cccccc);
}

.legal-foot-line a {
    color: var(--primary-color, #FFD700);
    font-weight: 600;
    text-decoration: none;
}

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

/* The other policies, so each page leads on rather than ending. */
.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-links a {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-color-secondary, #cccccc);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.38);
    color: var(--primary-color, #FFD700);
    outline: none;
}

/* The way back, marked apart from the sideways links beside it. */
.legal-links-home {
    margin-left: auto;
}

@media (max-width: 720px) {
    .legal-page {
        padding: 5.5rem 1rem 3.5rem;
    }

    .legal-body {
        padding: 1.6rem 1.35rem;
        border-radius: 12px;
    }

    .prose-text,
    .prose-list li {
        font-size: 1rem;
    }

    .legal-links-home {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-links a {
        transition: none;
    }
}
