/* =========================================
   Text / Legal Pages Styling
   ========================================= */

.pm-text-page-section {
    padding-top: 140px; /* Space for fixed navbar */
    padding-bottom: 100px;
    background-color: var(--bg-dark);
    min-height: 100vh;
}

/* Center breadcrumbs for this layout */
.pm-breadcrumbs.centered {
    justify-content: center;
    margin-bottom: 40px;
}

/* The Main Paper/Card */
.pm-text-card {
    max-width: 99%; /* Restricts width for readability */
    margin: 0 auto;   /* Centers the card */
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 60px 80px; /* Generous internal spacing */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Header inside the card */
.pm-text-header {
    text-align: center;
    margin-bottom: 50px;
}

.pm-text-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0 0 20px 0;
}

.pm-divider-line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Typography Engine (.pm-prose) --- */
/* This styles the raw HTML coming from the editor */

.pm-prose {
    color: #d1d5db; /* Light gray is better for reading than pure white */
    font-size: 1.05rem;
    line-height: 1.8; /* Relaxed line height */
}

/* Headings within content */
.pm-prose h1, 
.pm-prose h2, 
.pm-prose h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.pm-prose h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.pm-prose h3 {
    font-size: 1.2rem;
    color: #fff;
}

/* Paragraphs */
.pm-prose p {
    margin-bottom: 25px;
}

/* Links */
.pm-prose a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.pm-prose a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Lists */
.pm-prose ul, .pm-prose ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.pm-prose ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    list-style: none;
}

/* Custom Bullet Points */
.pm-prose ul li::before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: -10px;
    top: -2px;
}

.pm-prose strong, .pm-prose b {
    color: #fff;
    font-weight: 700;
}

/* Blockquotes */
.pm-prose blockquote {
    border-left: 4px solid var(--primary-red);
    background: rgba(255, 255, 255, 0.03);
    margin: 30px 0;
    padding: 20px;
    font-style: italic;
    color: #fff;
}

/* Responsive */
@media (max-width: 800px) {
    .pm-text-card {
        padding: 40px 30px; /* Reduce padding on mobile */
        width: 100%;
        border-radius: 0; /* Optional: flush with edges on small screens */
        border-left: none;
        border-right: none;
    }
    .pm-text-header h1 { font-size: 2rem; }
}