/* Shared styles for the Privacy Policy and Terms of Service pages.
   Inherits tokens (--primary-color, --dark-bg, ...) from styles.css. */

.legal {
    padding: 4rem 0 6rem;
}

.legal .container {
    max-width: 780px;
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 3rem;
}

.legal-summary h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.legal-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.legal-summary li {
    margin-bottom: 0.6rem;
    color: var(--text-light);
}

.legal-summary li:last-child {
    margin-bottom: 0;
}

.legal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    scroll-margin-top: 6rem;
}

.legal h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-light);
}

.legal p,
.legal li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal li {
    margin-bottom: 0.5rem;
}

.legal ul,
.legal ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal strong {
    color: var(--text-light);
    font-weight: 600;
}

.legal a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal a:hover,
.legal a:focus-visible {
    color: var(--accent-color);
}

/* Callout for the things that carry real legal weight. */
.legal-callout {
    background: rgba(255, 107, 157, 0.08);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.legal-callout p:last-child {
    margin-bottom: 0;
}

.legal-callout strong {
    color: #FFC2D6;
}

/* Table of contents */
.legal-toc {
    margin-bottom: 3rem;
}

.legal-toc ol {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.25rem;
}

.legal-toc li {
    break-inside: avoid;
    margin-bottom: 0.4rem;
}

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

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

/* Data tables */
.legal-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--card-border);
    vertical-align: top;
    color: var(--text-muted);
}

.legal-table th {
    color: var(--text-light);
    font-weight: 600;
    background: rgba(123, 136, 255, 0.08);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* Placeholders that MUST be filled in before this page is published. */
.fillme {
    background: #FFE066;
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    white-space: nowrap;
}

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