/* Terms & Policies pages */

/* Policy doc pages: only reduce the gap under the title, don’t change text */
.terms-doc-hero .hero-copy {
    margin-bottom: 0.5rem;
}

.terms-doc-hero .hero-copy-heading {
    min-height: auto;
}

.terms-doc-section {
    padding-bottom: 1rem;
}

/* Minimal gap between back link and document content */
.terms-doc-content .terms-back-link {
    margin-bottom: 0.25rem;
}

.terms-doc-content .terms-markdown > *:first-child {
    margin-top: 0;
}

/* Terms index page: reduce gaps only. No text size changes. */
.terms-index-hero .hero-copy {
    margin-bottom: 0.5rem;
}

/* Remove the 256px min-height on the heading so there’s no huge empty block */
.terms-index-hero .hero-copy-heading {
    min-height: auto;
}

.terms-index-section {
    padding-bottom: 1rem;
}

/* Align list with hero-copy (same left offset as .hero-copy in style.css) */
.terms-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 280px;
}

@media (max-width: 1024px) {
    .terms-index-list {
        margin-left: 40px;
    }
}

@media (max-width: 768px) {
    .terms-index-list {
        margin-left: 0;
    }
}

.terms-index-link {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-grey-200);
}

.terms-index-link:hover {
    color: var(--color-space-black);
}

.terms-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--color-accent);
    text-decoration: none;
}

.terms-back-link:hover {
    text-decoration: underline;
}

.terms-markdown {
    font-family: var(--font-primary);
    color: var(--color-space-black);
    line-height: 1.6;
}

.terms-markdown h1 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.terms-markdown h2 {
    font-size: 1.375rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.terms-markdown h3 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.terms-markdown p {
    margin-bottom: 1rem;
}

.terms-markdown ul,
.terms-markdown ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.terms-markdown li {
    margin-bottom: 0.25rem;
}

.terms-markdown a {
    color: var(--color-accent);
    text-decoration: none;
}

.terms-markdown a:hover {
    text-decoration: underline;
}

.terms-markdown strong {
    font-weight: 600;
}
