/* ==========================================================================
   MandiScope — Public Front Site only
   Layout inspired by modern SaaS platform pages; uses theme primary colors.
   Loaded only from _Layout.cshtml — never by _AdminLayout / ERP pages.
   ========================================================================== */

body.public-site {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--theme-text-dark);
    background: #fff;
}

body.public-site main {
    overflow-x: hidden;
}

/* ---------- Navbar ---------- */
body.public-site .navbar-public {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.12);
    padding: 0.7rem 0;
    z-index: 1040;
}

body.public-site .navbar-public .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151 !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    margin: 0 0.1rem;
}

body.public-site .navbar-public .nav-link:hover,
body.public-site .navbar-public .nav-link:focus {
    color: var(--theme-primary) !important;
    background-color: var(--theme-primary-subtle);
}

body.public-site .navbar-public .btn {
    border-radius: 50px !important;
    font-weight: 600;
    padding: 0.45rem 1.15rem !important;
}

body.public-site .navbar-public .btn-primary {
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.35);
}

/* ---------- Hero (centered platform style) ---------- */
.ps-hero {
    background: linear-gradient(135deg, #0a2540 0%, #0b3d7a 48%, #0d6efd 100%);
    padding: 7.5rem 0 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ps-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.ps-hero .container {
    position: relative;
    z-index: 1;
}

.ps-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    letter-spacing: 0.01em;
}

.ps-badge i {
    color: #ffc107;
}

.ps-hero-title {
    font-size: clamp(1.85rem, 4.5vw, 3.1rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.15rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.ps-hero-title .ps-hl {
    color: #93c5fd;
}

.ps-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.ps-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.ps-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.85rem;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(var(--theme-primary-rgb), 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ps-btn-primary:hover {
    background: var(--theme-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.5);
}

.ps-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 50px;
    padding: 0.8rem 1.7rem;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ps-btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff !important;
    transform: translateY(-2px);
}

.ps-btn-primary-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.3);
    transition: transform 0.25s ease, background 0.25s ease;
}

.ps-btn-primary-solid:hover {
    background: var(--theme-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

.ps-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--theme-text-dark) !important;
    border: 1.5px solid var(--theme-border-strong);
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ps-btn-ghost:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary) !important;
    transform: translateY(-2px);
}

/* ---------- Stats / trust strip ---------- */
.ps-strip {
    background: #fff;
    padding: 2rem 0 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ps-strip-label-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding: 0 1rem;
}

.ps-strip-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0);
}

.ps-strip-line.right {
    background: linear-gradient(to left, transparent, #e0e0e0);
}

.ps-strip-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    white-space: nowrap;
}

.ps-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.ps-stat {
    font-size: 0.92rem;
    color: var(--theme-text-muted);
}

.ps-stat strong {
    color: var(--theme-text-dark);
    font-weight: 700;
}

.ps-stat-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ced4da;
}

/* Light stats variant for dark hero banners */
.ps-hero .ps-stat,
.ps-stats-light .ps-stat {
    color: rgba(255, 255, 255, 0.85) !important;
}

.ps-hero .ps-stat strong,
.ps-stats-light .ps-stat strong {
    color: #ffffff !important;
    font-weight: 700;
}

.ps-hero .ps-stat-dot,
.ps-stats-light .ps-stat-dot {
    background: rgba(255, 255, 255, 0.45) !important;
}

/* ---------- Section chrome ---------- */
.ps-section {
    padding: 5.5rem 0;
}

.ps-section-lg {
    padding: 5.5rem 0;
}

.ps-section-muted {
    background: #f4f7fb;
}

.ps-section-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.ps-divider {
    width: 48px;
    height: 3px;
    background: var(--theme-primary);
    border-radius: 2px;
    margin: 0 auto 0.9rem;
}

.ps-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--theme-primary-subtle);
    color: var(--theme-primary-dark);
    border: 1px solid #b6d4fe;
    border-radius: 50px;
    padding: 0.35rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.ps-title {
    font-size: clamp(1.55rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--theme-text-dark);
    margin-bottom: 0.65rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.ps-title .accent {
    color: var(--theme-primary);
}

.ps-subtitle {
    font-size: 1rem;
    color: var(--theme-text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- How it works ---------- */
.ps-step {
    text-align: center;
    padding: 0 0.5rem;
    height: 100%;
}

.ps-step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.15rem;
    box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb), 0.35);
    transition: transform 0.25s ease;
}

.ps-step:hover .ps-step-num {
    transform: scale(1.08);
}

.ps-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--theme-text-dark);
}

.ps-step p {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Feature Category Filter Tabs ---------- */
.ps-feature-filter-wrap {
    margin-bottom: 2.25rem;
}

.ps-feat-filter-btn {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ps-feat-filter-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: #f8fafc;
}

.ps-feat-filter-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.28);
}

.ps-feat-filter-btn.active i {
    color: #fff !important;
}

.feat-pill-count {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    margin-left: 0.35rem;
}

.ps-feat-filter-btn.active .feat-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ---------- Centered Feature Cards (Key Modules) ---------- */
.ps-feature {
    padding: 2rem 1.6rem;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid #e9eff5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.ps-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3.5px;
    background: var(--theme-primary);
    transition: width 0.3s ease;
}

.ps-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--theme-primary-rgb), 0.35);
}

.ps-feature:hover::before {
    width: 100%;
}

.ps-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1.25rem auto;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ps-feature:hover .ps-feature-icon {
    transform: scale(1.08);
}

.ps-feature h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--theme-text-dark);
    text-align: center;
    width: 100%;
}

.ps-feature p {
    font-size: 0.88rem;
    color: var(--theme-text-muted);
    line-height: 1.65;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* ---------- Centered Benefit cards (Why Choose Us) ---------- */
.ps-benefit {
    padding: 2rem 1.6rem;
    border-radius: 14px;
    background: #f4f7fb;
    border: 1.5px solid rgba(var(--theme-primary-rgb), 0.1);
    height: 100%;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.ps-benefit:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border-color: rgba(var(--theme-primary-rgb), 0.25);
}

.ps-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--theme-primary-subtle);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1.25rem auto;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.ps-benefit:hover .ps-benefit-icon {
    transform: scale(1.08);
}

.ps-benefit h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--theme-text-dark);
    text-align: center;
    width: 100%;
}

.ps-benefit p {
    font-size: 0.88rem;
    color: var(--theme-text-muted);
    line-height: 1.65;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* ---------- Premium Full-Width Centered Comparison Table ---------- */
.ps-compare-table-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin: 1.5rem 0 0;
    width: 100%;
    max-width: 100%;
}

.ps-compare-table-wrapper .table-responsive {
    margin: 0;
    padding: 0;
    border: none;
}

.ps-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ps-compare-table thead th {
    padding: 1.2rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    vertical-align: middle;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.ps-compare-table .th-operation {
    width: 26%;
    background: #f8fafc;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
}

.ps-compare-table .th-manual {
    width: 37%;
    background: #fff5f5;
    color: #991b1b;
    border-right: 1px solid #fee2e2;
}

.ps-compare-table .th-mandiscope {
    width: 37%;
    background: #f0fdf4;
    color: #166534;
    border-left: 2px solid #86efac;
}

.ps-compare-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.ps-compare-table tbody tr:last-child {
    border-bottom: none;
}

.ps-compare-table tbody tr:hover {
    background: #fafbfc;
}

.ps-compare-table td {
    padding: 1.15rem 1.5rem;
    vertical-align: middle;
    text-align: center;
}

/* Operation Cell */
.ps-compare-table .td-operation {
    background: #fafbfc;
    border-right: 1px solid #f1f5f9;
}

/* 2-Line Cell Structure (Full Width & Centered) */
.ps-table-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.ps-table-cell-title {
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.ps-table-cell-sub {
    font-size: 0.86rem;
    line-height: 1.6;
    color: #64748b;
}

/* Manual Column Cell */
.ps-compare-table .td-manual {
    background: rgba(254, 242, 242, 0.28);
    border-right: 1px solid #f1f5f9;
}

.ps-compare-table .td-manual .ps-table-cell-title {
    color: #b91c1c;
}

.ps-compare-table .td-manual .ps-table-cell-sub {
    color: #64748b;
}

/* MandiScope Column Cell */
.ps-compare-table .td-mandiscope {
    background: rgba(240, 253, 244, 0.42);
    border-left: 2px solid #bbf7d0;
}

.ps-compare-table .td-mandiscope .ps-table-cell-title {
    color: #15803d;
}

.ps-compare-table .td-mandiscope .ps-table-cell-sub {
    color: #334155;
}

/* ---------- Pricing / plan cards ---------- */
.ps-plan {
    background: #fff;
    border: 1.5px solid rgba(var(--theme-primary-rgb), 0.12);
    border-radius: 16px;
    padding: 1.75rem 1.35rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ps-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.ps-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-primary);
    margin: 0.65rem 0 0.35rem;
    letter-spacing: -0.02em;
}

.ps-note {
    background: #fff;
    border: 1.5px solid rgba(var(--theme-primary-rgb), 0.1);
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    height: 100%;
}

.ps-trial-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #c3e6cb;
    color: var(--theme-emerald);
    border-radius: 50px;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- CTA block ---------- */
.ps-cta {
    background: linear-gradient(135deg, #0a2540 0%, #0b3d7a 48%, #0d6efd 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.ps-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.ps-cta .container {
    position: relative;
    z-index: 1;
}

.ps-cta-title {
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.85rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ps-cta-title .ps-hl {
    color: #93c5fd;
}

.ps-cta-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.ps-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.ps-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.ps-trust-item i {
    color: #93c5fd;
}

.ps-cta-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.ps-cta-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ps-cta-stat-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.ps-cta-stat-lbl {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.ps-cta-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 1.15rem 0;
}

.ps-cta-card-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.ps-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: #fff !important;
    margin-bottom: 0.65rem;
    transition: background 0.2s ease;
}

.ps-contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.ps-contact-btn i {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.ps-contact-btn .cta-btn-title {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
}

.ps-contact-btn .cta-btn-sub {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Footer ---------- */
body.public-site .public-footer {
    background: #0a1628;
    border-top: none;
    color: rgba(255, 255, 255, 0.65);
    padding: 3.25rem 0 1.75rem;
    font-size: 0.9rem;
}

body.public-site .public-footer .footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

body.public-site .public-footer .footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 320px;
    margin-top: 0.75rem;
}

body.public-site .public-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

body.public-site .public-footer a:hover {
    color: #fff;
}

body.public-site .public-footer .footer-col-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

body.public-site .public-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.public-site .public-footer .footer-links li {
    margin-bottom: 0.55rem;
}

body.public-site .public-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Auth pages on public layout — keep content readable under new footer/nav */
body.public-site .auth-split,
body.public-site .login-container,
body.public-site .register-container {
    min-height: calc(100vh - 200px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .ps-hero {
        padding: 6rem 0 3.75rem;
    }

    .ps-section,
    .ps-section-lg {
        padding: 3.75rem 0;
    }

    .ps-cta {
        padding: 3.5rem 0;
    }

    .ps-stat-dot {
        display: none;
    }

    .ps-stats {
        gap: 0.65rem 1.5rem;
    }
}

@media (max-width: 575.98px) {

    .ps-hero-actions .ps-btn-primary,
    .ps-hero-actions .ps-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .ps-step-num {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .ps-compare th,
    .ps-compare td {
        padding: 0.7rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ---------- Legal & Policy Documentation Pages ---------- */
.ps-policy-hero {
    background: linear-gradient(135deg, #0a2540 0%, #0b3d7a 48%, #0d6efd 100%);
    padding: 6.5rem 0 3.5rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ps-policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.ps-policy-nav-card {
    background: #fff;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 90px;
}

.ps-policy-nav-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #edf2f7;
}

.ps-policy-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ps-policy-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ps-policy-nav-item a:hover {
    background: var(--theme-primary-subtle);
    color: var(--theme-primary);
}

.ps-policy-nav-item.active a {
    background: var(--theme-primary);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.25);
}

.ps-policy-nav-item a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.ps-policy-card {
    background: #fff;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    line-height: 1.75;
    color: #2d3748;
}

.ps-policy-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.ps-policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.ps-policy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ps-policy-heading {
    font-size: 1.28rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ps-policy-heading .heading-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--theme-primary-subtle);
    color: var(--theme-primary);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.ps-policy-callout {
    border-radius: 12px;
    padding: 1.15rem 1.35rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ps-policy-callout i {
    font-size: 1.3rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ps-policy-callout.callout-danger {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
}

.ps-policy-callout.callout-danger i {
    color: #dc2626;
}

.ps-policy-callout.callout-warning {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    color: #92400e;
}

.ps-policy-callout.callout-warning i {
    color: #d97706;
}

.ps-policy-callout.callout-info {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    color: #0369a1;
}

.ps-policy-callout.callout-info i {
    color: #0284c7;
}

.ps-policy-callout.callout-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #166534;
}

.ps-policy-callout.callout-success i {
    color: #16a34a;
}

.ps-policy-company-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ps-policy-company-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.ps-policy-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    font-size: 0.9rem;
}

.ps-policy-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #475569;
}

.ps-policy-contact-item i {
    color: var(--theme-primary);
    margin-top: 0.2rem;
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.ps-policy-contact-item a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
}

.ps-policy-contact-item a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .ps-policy-card {
        padding: 1.5rem 1.25rem;
    }

    .ps-policy-nav-card {
        position: static;
        margin-bottom: 1.5rem;
    }
}