/* ==========================================================================
   LEGAL PAGES — Terms, Privacy, Policies
   ========================================================================== */

.hp-legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 48px 80px;
    background: var(--bg-page);
}

/* ── Header ── */
.hp-legal-page__header {
    text-align: center !important;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-default);
}

.hp-legal-page__title {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 12px;
    line-height: 1.2;
    text-align: center !important;
}

.hp-legal-page__meta {
    font-family: var(--font-body);
    font-size: var(--text-sub);
    color: var(--text-muted);
    margin: 0;
    text-align: center !important;
}

/* ── Body ── */
.hp-legal-page__body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--text-body);
}

/* ── Sections ── */
.hp-legal-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-default);
}

.hp-legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hp-legal-section h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 16px;
    line-height: 1.3;
}

.hp-legal-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--green-dark);
    margin: 24px 0 12px;
    line-height: 1.3;
}

.hp-legal-section p {
    margin: 0 0 14px;
}

.hp-legal-section p:last-child {
    margin-bottom: 0;
}

.hp-legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Lists ── */
.hp-legal-section ul {
    margin: 0 0 14px;
    padding-left: 24px;
    list-style: none;
}

.hp-legal-section ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}

.hp-legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sunset-mid);
}

/* ── Links ── */
.hp-legal-section a {
    color: var(--sunset-deep);
    text-decoration: underline;
    text-decoration-color: rgba(232, 152, 88, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.hp-legal-section a:hover {
    text-decoration-color: var(--sunset-deep);
}

/* ── Astra overrides (all legal templates) ── */
.page-template-page-terms .entry-content,
.page-template-page-terms .ast-container,
.page-template-page-privacy-policy .entry-content,
.page-template-page-privacy-policy .ast-container,
.page-template-page-shipping-returns .entry-content,
.page-template-page-shipping-returns .ast-container,
.page-template-page-hemp-disclaimer .entry-content,
.page-template-page-hemp-disclaimer .ast-container,
.page-template-page-cookie-policy .entry-content,
.page-template-page-cookie-policy .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.page-template-page-terms #primary,
.page-template-page-privacy-policy #primary,
.page-template-page-shipping-returns #primary,
.page-template-page-hemp-disclaimer #primary,
.page-template-page-cookie-policy #primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hp-legal-page {
        padding: 48px 32px 60px;
    }

    .hp-legal-page__header {
        margin-bottom: 36px;
        padding-bottom: 24px;
    }

    .hp-legal-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hp-legal-page {
        padding: 36px 20px 48px;
    }

    .hp-legal-page__header {
        margin-bottom: 28px;
    }

    .hp-legal-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
}
