/* Unified with the product doc pages (anoukfleet-*.php, leadtime-*.php,
   *-help.php -- see includes/product-legal-styles.php): same purple
   accent, card, and type scale, so every legal/help document on the
   site reads as one consistent design regardless of which template
   built it. Class names here are kept as-is (.ld-*) since these are
   shared across several existing pages (terms.php, privacy.php,
   cookies.php, paia-manual.php, software-terms-privacy-policy.php,
   software-data-deletion.php, legal.php) -- only the colors/spacing
   change, not the markup. */
.ld-wrap { background: #f7f5fb; padding: 48px 16px 80px; }
.ld-card {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e6e1f2;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    padding: 40px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    animation: ld-fade-up .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes ld-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ld-card { animation: none; }
}
.ld-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c3aed;
    background: #f4f0fc;
    border: 1px solid #ddd0f7;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}
.ld-card h1 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
}
.ld-meta {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}
.ld-intro { margin-bottom: 8px; }
.ld-card h2 {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 32px 0 10px !important;
    padding-top: 28px !important;
    border-top: 1px solid #eee !important;
    line-height: 1.3 !important;
}
.ld-card h2:first-of-type { border-top: none !important; padding-top: 0 !important; }
.ld-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #5b21b6 !important;
    margin: 20px 0 8px !important;
    line-height: 1.4 !important;
}
.ld-card p {
    font-size: 15px !important;
    color: #374151 !important;
    margin: 0 0 14px !important;
    line-height: 1.75 !important;
}
.ld-card ul {
    list-style: none !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.ld-card ul li {
    font-size: 15px !important;
    color: #374151 !important;
    padding-left: 20px !important;
    position: relative !important;
    line-height: 1.65 !important;
}
.ld-card ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #a78bfa !important;
}
.ld-card code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace !important;
    font-size: 13.5px !important;
    background: #f4f0fc !important;
    color: #5b21b6 !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
}
.ld-card a { color: #7c3aed !important; text-decoration: underline !important; text-underline-offset: 2px; }
.ld-card a:hover { color: #5b21b6 !important; }
.ld-card a.btn { color: #ffffff !important; text-decoration: none !important; }
.ld-card a.btn:hover { text-decoration: none !important; }
.ld-card a.btn-outline { color: #7c3aed !important; }
.ld-card strong { color: #111827 !important; font-weight: 700 !important; }
.ld-info {
    background: #faf9fc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px 0 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ld-info:hover { border-color: #ddd0f7; box-shadow: 0 8px 20px rgba(124,58,237,.08); }
.ld-info ul { margin: 0 !important; }
.ld-info ul li { padding-left: 0 !important; font-size: 14px !important; }
.ld-info ul li::before { display: none !important; }
.ld-foot {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #9ca3af;
}
.ld-foot a { color: #6b7280 !important; }
@media (max-width: 640px) {
    .ld-card { padding: 28px 20px; }
    .ld-card h1 { font-size: 22px !important; }
}
.ld-doc-divider {
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
    background: #f4f0fc; border: 1px solid #ddd0f7; border-radius: 10px;
    padding: 20px 24px; margin: 48px 0 28px;
    transition: box-shadow .18s ease, transform .18s ease;
}
.ld-doc-divider:hover { box-shadow: 0 8px 20px rgba(124,58,237,.1); transform: translateY(-1px); }
.ld-doc-divider:first-of-type { margin-top: 0; }
.ld-doc-divider-tag {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #7c3aed; margin-bottom: 4px;
}
.ld-doc-divider-title { font-size: 20px !important; font-weight: 700 !important; color: #111827 !important; margin: 0 !important; line-height: 1.3 !important; }
.ld-doc-divider-meta { font-size: 12px; color: #6b7280; white-space: nowrap; }
.ld-part-title {
    font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #9ca3af; margin: 48px 0 0; padding-top: 32px; border-top: 2px solid #111827;
}
.ld-part-title:first-of-type { margin-top: 40px; }
@media (max-width: 640px) {
    .ld-doc-divider { padding: 16px 20px; }
}

/* Small inline tier/feature badge next to a heading (used on help
   docs, e.g. "Message Scheduling <span class="ld-tier">Standard</span>"). */
.ld-tier {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #7c3aed; background: #f4f0fc; border: 1px solid #ddd0f7; border-radius: 999px;
    padding: 2px 8px; margin-left: 8px; vertical-align: middle;
}

/* Category pill nav for help docs (anoukfleet-help.php, leadtime-help.php). */
.ld-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; }
.ld-cat-nav a {
    text-decoration: none !important; color: #5b21b6 !important; background: #f4f0fc; border: 1px solid #ddd0f7;
    border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.ld-cat-nav a:hover { background: #ede5fb; }
