/* ============================================
   BEACON PAIN CLINIC — SHARED PUBLIC PAGE LAYERS
   Legal + prose pages. Scoped selectors only (no bare .hero-title / .section-title).
   Aligns with condition-page / contact hero treatment.
   ============================================ */

/* ----- Legal document hero (privacy, terms) ----- */
.privacy-hero,
.terms-hero {
    background: linear-gradient(135deg, rgba(91, 163, 208, 0.12), rgba(91, 163, 208, 0.02));
    color: var(--text-dark);
    padding: 56px 0 44px;
    text-align: left;
}

.privacy-hero-container,
.terms-hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.privacy-hero h1.hero-title,
.terms-hero h1.hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--text-dark);
}

.privacy-hero .hero-description,
.terms-hero .hero-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.privacy-hero .hero-description p,
.terms-hero .hero-description p {
    margin: 0 0 12px;
}

.privacy-hero .last-updated,
.terms-hero .last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ----- Legal body ----- */
.privacy-content,
.terms-content {
    padding: 56px 0 64px;
    background: var(--bg-light);
}

.privacy-container,
.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.privacy-main,
.terms-main {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.privacy-section,
.terms-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-of-type,
.terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.privacy-section .section-title,
.terms-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.3;
}

.privacy-section p,
.terms-section p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.privacy-section ul,
.terms-section ul {
    margin: 12px 0;
    padding-left: 1.25rem;
}

.privacy-section li,
.terms-section li {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.privacy-main .privacy-section a,
.terms-main .terms-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-main .privacy-section a:hover,
.terms-main .terms-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.privacy-main .contact-info,
.terms-main .contact-info {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.privacy-main .contact-info address,
.terms-main .contact-info address {
    font-style: normal;
    line-height: 1.6;
}

.privacy-main .contact-info a,
.terms-main .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-main .contact-info a:hover,
.terms-main .contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.privacy-footer,
.terms-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.privacy-footer p,
.terms-footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .privacy-hero,
    .terms-hero {
        padding: 40px 0 36px;
    }

    .privacy-content,
    .terms-content {
        padding: 40px 0 48px;
    }

    .privacy-main,
    .terms-main {
        padding: 24px;
        border-radius: 12px;
    }

    .privacy-section,
    .terms-section {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .privacy-section .section-title,
    .terms-section .section-title {
        font-size: 1.125rem;
    }

    .privacy-section p,
    .privacy-section li,
    .terms-section p,
    .terms-section li {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .privacy-hero-container,
    .terms-hero-container,
    .privacy-container,
    .terms-container {
        padding: 0 16px;
    }

    .privacy-main,
    .terms-main {
        padding: 20px;
    }
}

/* ----- Public CTA links (condition + headache pages): stay above fixed chrome ----- */
.cta-section .cta-actions,
.cta-section .cta-buttons {
    position: relative;
    z-index: 2;
}

.cta-section .cta-actions a[href],
.cta-section a.cta-button[href],
.cta-section a.primary-btn[href],
.cta-section a.outline-btn[href] {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
