/* Dedicated layout and typography for legal pages */

.main-container {
    padding: 2rem 1rem 4rem;
}

.section-container {
    width: 100%;
}

.section-container + .section-container {
    margin-top: 1.5rem;
}

.section-wrapper {
    width: min(100%, 980px);
    margin: 0 auto;
}

.hero-section-wrapper {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
}

.hero-section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.hero-section-wrapper p {
    color: var(--text-secondary);
    max-width: 78ch;
    line-height: 1.75;
    margin-top: 0.75rem;
}

.legal-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
}

.section-title {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.subsection-title {
    font-size: 1.02rem;
    margin: 1.1rem 0 0.4rem;
    color: var(--text-primary);
}

.section-content {
    margin-top: 0.9rem;
}

.paragraph,
.section-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 0.7rem;
    max-width: 76ch;
}

.section-content ul,
.section-content ol {
    margin: 0.8rem 0 0.2rem 1.1rem;
    padding-left: 0.9rem;
}

.section-content li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.45rem;
}

.section-content a,
.hero-section-wrapper a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-content strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem 0.7rem 3.5rem;
    }

    .hero-section-wrapper,
    .page-section {
        padding: 1.1rem;
        border-radius: 12px;
    }

    .hero-section-wrapper p,
    .paragraph,
    .section-content p,
    .section-content li {
        line-height: 1.7;
    }
}
