/* ===== SPECIAL PAGES AND COMPONENTS ===== */

/* Terms and Privacy Pages Styling */
.textinfo.terms,
.textinfo.privacy {
    padding: 80px 0px;
}

/* Simplified heading styles using new heading system variables */
.textinfo.terms h1,
.textinfo.privacy h1 {
    font-size: var(--font-size-4xl);
    color: var(--heading-color-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--heading-line-height-tight);
    margin-bottom: var(--heading-margin-bottom);
}

.textinfo.terms h2,
.textinfo.privacy h2 {
    font-size: var(--font-size-3xl);
    color: var(--heading-color-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--heading-line-height-normal);
    margin: 40px 0 20px 0; /* Keep existing margin for content spacing */
}

.textinfo.terms h3,
.textinfo.privacy h3 {
    font-size: var(--font-size-2xl);
    color: var(--heading-color-primary);
    font-weight: var(--font-weight-semibold);
    line-height: var(--heading-line-height-normal);
    margin: 30px 0 15px 0;
}

.textinfo.terms h4,
.textinfo.privacy h4 {
    font-size: var(--font-size-xl);
    color: var(--heading-color-primary);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    margin: 25px 0 12px 0;
}

.textinfo.terms p,
.textinfo.privacy p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.textinfo.terms ul,
.textinfo.privacy ul,
.textinfo.terms ol,
.textinfo.privacy ol {
    margin: 16px 0;
    padding-left: 30px;
}

.textinfo.terms li,
.textinfo.privacy li {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.textinfo.terms a,
.textinfo.privacy a {
    color: #3030F1;
    text-decoration: underline;
}

.textinfo.terms a:hover,
.textinfo.privacy a:hover {
    color: #003AFA;
    text-decoration: underline;
}

.textinfo.terms table,
.textinfo.privacy table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.textinfo.terms th,
.textinfo.privacy th,
.textinfo.terms td,
.textinfo.privacy td {
    border: 1px solid var(--color-border-primary);
    padding: 12px;
    text-align: left;
}

.textinfo.terms th,
.textinfo.privacy th {
    background-color: var(--color-bg-secondary);
    font-weight: 700;
}

/* Table of Contents Component */
#ez-toc-container {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    margin: 30px 0;
    padding: 20px;
}

#ez-toc-container .ez-toc-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

#ez-toc-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ez-toc-container li {
    margin-bottom: 8px;
}

#ez-toc-container a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

#ez-toc-container a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Banner-new component styles consolidated in cards-sections.css to avoid duplication */

/* New page explore cards consolidated in cards-sections.css to avoid duplication */

/* Section Title Component */
.section-title h2 {
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 24px;
}

.section-title p {
    font-size: 18px;
    opacity: 0.8;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.section-title.white h2 {
    color: var(--color-bg-primary);
}

.section-title.white p {
    color: var(--color-bg-primary);
}

/* Finding Dreams Section - Primary definition */
.finding-dreams {
    padding: 70px 0px 30px 0px;
    background: #f9f9f9;
}

.finding-dreams p {
    color: var(--color-text-muted);
    font-size: 18px;
    font-weight: 500;
}

.finding-dreams .section-title p {
    max-width: 65%;
    margin-bottom: 30px;
}

/* Dream Card Styles - MIGRATED TO cards.css */
/* All .dream-card styles have been moved to the consolidated card system */
/* Use: .dream-card from cards.css for dream card components */

/* Finding Dreams section - using systematic button approach */
.finding-dreams .btn.btn-primary {
    padding: var(--btn-padding-lg, 16px 35px);
}

/* Breadcrumbs Component */
#breadcrumbs {
    color: var(--link-utility);
    font-size: 16px;
    visibility: visible;
    opacity: 1;
    display: inline-block;
}

#breadcrumbs a {
    color: var(--link-utility);
    text-decoration: underline;
}

#breadcrumbs .breadcrumb_last {
    font-weight: bold;
    color: var(--link-utility);
}

/* Video embed components consolidated in media-modals.css to avoid duplication */

/* Pagination Component */
.my-pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.my-pagination li {
    display: inline-block;
}

.my-pagination a {
    color: var(--color-primary);
    text-decoration: none;
}

.my-pagination-btn {
    background: #f6f6f6;
    padding: 10px;
    border-radius: 12px;
    margin-right: 8px;
    min-width: 40px;
    display: inline-block;
}

.current-page-pagination.my-pagination-btn, 
.my-pagination-btn:hover {
    background: var(--color-primary);
    color: #fff;
}