/**
 * Legal Pages — Clean Minimal Styling
 * Applies to: Privacy Policy, Terms of Service, Shipping Policy, 
 *             Return/Refund Policy, Distance Sales Agreement
 * @version 1.0
 */

/* ── Layout ────────────────────────────────────── */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.legal-page .legal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-page .legal-meta svg {
    flex-shrink: 0;
}

/* ── Entry Content ─────────────────────────────── */
.legal-page .entry-content {
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.legal-page .entry-content > p:first-child {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 20px;
}

/* ── Headings ──────────────────────────────────── */
.legal-page .entry-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    letter-spacing: -0.01em;
}

.legal-page .entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-page .entry-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 24px;
    margin-bottom: 8px;
}

/* ── Paragraphs ────────────────────────────────── */
.legal-page .entry-content p {
    margin-bottom: 16px;
}

.legal-page .entry-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* ── Lists ─────────────────────────────────────── */
.legal-page .entry-content ul,
.legal-page .entry-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-page .entry-content ul {
    list-style: disc;
}

.legal-page .entry-content ol {
    list-style: decimal;
}

.legal-page .entry-content ul li,
.legal-page .entry-content ol li {
    padding: 3px 0;
    margin-bottom: 2px;
    background: none;
    border: none;
    border-radius: 0;
}

/* ── Separators ────────────────────────────────── */
.legal-page .entry-content hr,
.legal-page .entry-content .wp-block-separator {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 32px 0;
}

/* ── Contact Card ──────────────────────────────── */
.legal-page .contact-card {
    margin-top: 28px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 0;
    border: 1px solid #e2e8f0;
}

.legal-page .contact-card p {
    margin: 0;
    line-height: 2;
}

/* ── Info Box ──────────────────────────────────── */
.legal-page .info-box {
    padding: 16px 20px;
    background: #f0f7ff;
    border-radius: 0;
    border-left: 3px solid #3b82f6;
    margin: 16px 0;
    color: #1e40af;
    font-size: 0.9375rem;
}

.legal-page .info-box strong {
    color: #1e3a8a;
}

.legal-page .warning-box {
    padding: 16px 20px;
    background: #fffbeb;
    border-radius: 0;
    border-left: 3px solid #f59e0b;
    margin: 16px 0;
    color: #92400e;
    font-size: 0.9375rem;
}

/* ── Breadcrumb ────────────────────────────────── */
.legal-breadcrumb {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 24px 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.legal-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-breadcrumb a:hover {
    color: #3b82f6;
}

.legal-breadcrumb span {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 640px) {
    .legal-page {
        padding: 40px 16px 60px;
    }
    
    .legal-page h1 {
        font-size: 1.625rem;
    }
    
    .legal-page .entry-content h2 {
        font-size: 1.1875rem;
        margin-top: 36px;
    }
    
    .legal-page .entry-content h3 {
        font-size: 1rem;
    }
    
    .legal-page .entry-content ul li,
    .legal-page .entry-content ol li {
        padding: 2px 0;
    }
}

/* ── Dark (follows system preference) ────────── */
@media (prefers-color-scheme: dark) {
    /* skip dark mode — site uses fixed light theme */
}

/* ── WP Block overrides ──────────────────────── */
.legal-page .wp-block-heading {
    /* inherit from our h2/h3 styles above */
}

.legal-page .wp-block-list {
    padding-left: 24px;
}

.legal-page .wp-block-separator {
    opacity: 1;
}
