/* ===========================================================================
   Site pages: About, Privacy, Terms.

   Loaded after detail.css, which supplies the shell (.dp-crumbs, .dp-hero,
   .dp-layout, .dp-section, .dp-prose, .dp-card, .dp-stats). This file adds
   only what a long, hand-written page needs on top of it, prefixed lp-:

     .lp-meta      the dated line under the hero title
     .lp-summary   "the short version" box that opens a policy
     .lp-toc       two-column contents list
     .lp-num       clause number in a section heading (a CSS counter)
     .lp-prose     list, sub-heading and emphasis rules .dp-prose lacks
     .lp-table     cookie / retention tables, stacking on a phone
     .lp-grid      the About page's principle tiles
     .lp-fine      the governing-law / closing line

   The .legal-container block at the foot is the previous design. The gig
   guide (/magazine/going-to-a-gig/) still renders on it; move that page over
   and the block can go.
   =========================================================================== */

.lp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--dp-muted);
}

.lp-meta span + span::before {
    content: '\00b7';
    margin: 0 0.6rem;
    opacity: 0.5;
}

/* On a phone the items stack; a separator left at the start of a wrapped
   line reads as a stray bullet. */
@media (max-width: 640px) {
    .lp-meta {
        flex-direction: column;
    }

    .lp-meta span + span::before {
        content: none;
    }
}

/* "The short version" ------------------------------------------------------ */

.lp-summary {
    margin: 0 0 2.25rem;
    padding: 1.1rem 1.25rem 1.2rem;
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 0, 0, 0.08), transparent 60%),
        var(--dp-surface);
}

.lp-summary-title {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dp-red-soft);
}

.lp-summary ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--dp-text);
}

.lp-summary li + li {
    margin-top: 0.4rem;
}

.lp-summary li::marker {
    color: var(--dp-red-soft);
}

.lp-summary a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.lp-summary a:hover {
    text-decoration-color: var(--dp-red);
}

/* Contents ------------------------------------------------------------------ */

.lp-toc {
    columns: 2;
    column-gap: 2rem;
    margin: 0 0 2.5rem;
    padding: 0 0 0 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dp-text);
}

/* Bottom margin only: a top margin pushes the first column's first item down
   and leaves the second column starting higher than the first. */
.lp-toc li {
    break-inside: avoid;
    margin: 0 0 0.5rem;
}

@media (max-width: 640px) {
    .lp-toc {
        columns: 1;
    }
}

.lp-toc li::marker {
    color: var(--dp-muted);
    font-variant-numeric: tabular-nums;
}

.lp-toc a {
    color: inherit;
    text-decoration: none;
}

.lp-toc a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--dp-red);
}

/* Sections ------------------------------------------------------------------ */

/* Anchors land clear of the fixed site header. */
.dp-section[id] {
    scroll-margin-top: 100px;
}

/* Clause numbers count themselves, so a section that only renders under a
   flag (the merch one) never leaves a gap, and the contents list, an <ol>,
   stays in step for the same reason. */
.dp-main {
    counter-reset: clause;
}

.lp-num::before {
    counter-increment: clause;
    content: counter(clause, decimal-leading-zero);
    display: inline-block;
    margin-right: 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    vertical-align: middle;
    color: var(--dp-red-soft);
    font-variant-numeric: tabular-nums;
}

.lp-prose ul,
.lp-prose ol {
    margin: 0 0 0.9rem;
    padding-left: 1.25rem;
}

.lp-prose li {
    margin: 0.3rem 0;
}

.lp-prose li::marker {
    color: var(--dp-red-soft);
}

.lp-prose h3 {
    margin: 1.4rem 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.lp-prose strong {
    color: #fff;
    font-weight: 600;
}

.lp-prose code {
    padding: 0.05em 0.4em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.85em;
}

/* Tables -------------------------------------------------------------------- */

.lp-table {
    width: 100%;
    margin: 0.25rem 0 1rem;
    border-collapse: collapse;
    font-size: 0.86rem;
    line-height: 1.55;
}

.lp-table th,
.lp-table td {
    padding: 0.6rem 1rem 0.6rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--dp-line-soft);
}

.lp-table th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dp-muted);
}

.lp-table td {
    color: var(--dp-text);
}

.lp-table td:first-child {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.lp-table code {
    padding: 0.05em 0.4em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.85em;
}

@media (max-width: 640px) {
    .lp-table thead {
        display: none;
    }

    .lp-table tr {
        display: block;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--dp-line);
    }

    .lp-table td {
        display: block;
        padding: 0.15rem 0;
        border: 0;
    }

    .lp-table td:first-child {
        white-space: normal;
    }

    .lp-table td[data-label]::before {
        content: attr(data-label) ': ';
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--dp-muted);
    }
}

/* About: principle tiles ---------------------------------------------------- */

.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 0 2.5rem;
}

.lp-grid .dp-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.lp-grid .dp-card h3 i {
    margin-right: 0.5rem;
    color: var(--dp-red-soft);
}

/* Closing line -------------------------------------------------------------- */

.lp-fine {
    margin: 2.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--dp-line-soft);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #777;
}

.lp-fine a {
    color: inherit;
}

/* The sidebar cards carry a short link list. */
.lp-links {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
}

.lp-links li {
    border-top: 1px solid var(--dp-line-soft);
}

.lp-links li:first-child {
    border-top: 0;
}

.lp-links a {
    display: block;
    padding: 0.5rem 0;
    color: var(--dp-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-links a:hover {
    color: #fff;
}

/* ===========================================================================
   Previous design. Still used by views/content/gig_guide.html.
   =========================================================================== */

.legal-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 2rem;
    color: #fff;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff0000;
}

.legal-container section {
    margin: 2rem 0;
}

.legal-container h2 {
    font-size: 1.8rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.legal-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-container ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
