/* === LEGAL PAGE STYLES === */
/* Shared by the Privacy Policy and Terms of Service pages. */

/* Override main-content centering - allows scrolling for tall content */
body:has(.legal-content) .main-content {
    justify-content: flex-start;
    padding-bottom: 3rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.legal-section {
    position: relative;
    background: transparent;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section > * {
    position: relative;
}

.legal-section h2 {
    color: var(--color-title);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-section h3 {
    color: var(--color-title);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legal-section p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    color: var(--color-text);
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.legal-section a {
    color: var(--color-title);
    text-decoration: underline;
}

.legal-section a:hover {
    opacity: 0.8;
}

/* === MOBILE === */
@media (max-width: 600px) {
    /* Trim the section padding for small screens, but keep enough horizontal
       room that the text isn't flush against the wobbly box border. */
    .legal-section {
        padding: 1.25rem;
    }
}
