/**
 * TOWD Legal Pages Styles
 * Styles for Terms and Conditions, Refund Policy, etc.
 * Content is generated from Markdown files
 */

.legal-content {
    padding: 3rem 1rem;
    background: var(--white);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Hide the h1 from markdown since we use page-header */
.legal-container > h1:first-child {
    display: none;
}

/* Section headers (h2) */
.legal-container h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-container h2:first-of-type {
    margin-top: 0;
}

/* Paragraphs */
.legal-container p {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Effective date / intro text (first p after hidden h1) */
.legal-container > p:first-of-type {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Lists */
.legal-container ul,
.legal-container ol {
    color: #4a4a4a;
    line-height: 1.7;
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* Nested lists */
.legal-container li ul,
.legal-container li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links */
.legal-container a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 2px;
}

.legal-container a:hover {
    color: var(--yellow);
    text-decoration-color: var(--yellow);
}

/* Bold text */
.legal-container strong {
    font-weight: 600;
    color: var(--black);
}

/* Tablet and up */
@media (min-width: 768px) {
    .legal-content {
        padding: 4rem 2rem;
    }

    .legal-container h2 {
        font-size: 1.4rem;
    }
}
