/**
 * payroll.sg - Legal Pages Dedicated Stylesheet (Dark Theme)
 * Covers: /terms-and-conditions, /privacy-policy, /data-protection
 * Standardized 16px typography, accessible contrast, mobile-first responsive design.
 */

.pg-legal-wrapper {
    background-color: #080c14;
    min-height: 100vh;
    padding-bottom: 80px;
    color: #cbd5e1;
}

/* Hero Section - Synchronized with .pg-payroll-hero */
.pg-payroll-hero {
    position: relative;
    padding-top: calc(var(--header-height, 72px) + 24px);
    padding-bottom: 0;
    min-height: 360px;
    overflow: hidden;
    background-color: #080c14;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 40px;
}

.pg-payroll-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    min-height: 320px;
}

.pg-payroll-hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 48%;
    max-width: 560px;
    padding-bottom: 28px;
    align-self: center;
}

.pg-payroll-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.pg-payroll-hero-sub {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 18px;
}

.pg-payroll-hero-graphic,
.pg-payroll-hero-image-box,
.pg-hero-graphic,
.pg-hero-image-box {
    position: relative;
    flex: 1 1 52%;
    max-width: 660px;
    height: 320px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    pointer-events: auto;
}

.pg-payroll-hero-img,
.pg-hero-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: right bottom;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.85) 45%, #000 70%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.85) 45%, #000 70%);
}

.pg-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 223, 137, 0.1);
    border: 1px solid rgba(0, 223, 137, 0.25);
    color: #00DF89;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pg-legal-badge i {
    font-size: 12px;
}

.pg-legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #94a3b8;
}

.pg-legal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-legal-meta-item i {
    color: #00DF89;
}

/* Main Content Card */
.pg-legal-card {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 40px;
}

.pg-legal-intro {
    font-size: 17px;
    line-height: 1.8;
    color: #e2e8f0;
    padding-bottom: 28px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 36px;
}

/* Typography Inside Legal Body */
.pg-legal-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-legal-body h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #00DF89;
    border-radius: 2px;
}

.pg-legal-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 28px;
    margin-bottom: 12px;
}

.pg-legal-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.pg-legal-body strong {
    color: #f8fafc;
    font-weight: 600;
}

.pg-legal-body a {
    color: #00DF89;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 223, 137, 0.4);
    transition: all 0.2s ease;
}

.pg-legal-body a:hover {
    color: #34d399;
    border-bottom-color: #34d399;
}

/* Ordered & Unordered Lists */
.pg-legal-body ul,
.pg-legal-body ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.pg-legal-body li {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.pg-legal-body ul li {
    list-style-type: disc;
}

.pg-legal-body ol li {
    list-style-type: decimal;
}

.pg-legal-body ol.lower-alpha li {
    list-style-type: lower-alpha;
}

.pg-legal-body ol.lower-roman li {
    list-style-type: lower-roman;
}

/* Highlight / Note Box */
.pg-legal-callout {
    background: rgba(0, 223, 137, 0.06);
    border: 1px solid rgba(0, 223, 137, 0.2);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
}

.pg-legal-callout h4 {
    font-size: 16px;
    font-weight: 700;
    color: #00DF89;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-legal-callout p {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 0;
}

/* Contact / DPO Card */
.pg-legal-dpo-box {
    background: #101928;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 36px;
}

.pg-legal-dpo-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.pg-legal-dpo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

@media (min-width: 640px) {
    .pg-legal-dpo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pg-legal-dpo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #cbd5e1;
}

.pg-legal-dpo-item i {
    color: #00DF89;
    width: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pg-payroll-hero {
        min-height: auto;
        padding-bottom: 30px;
    }
    .pg-payroll-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 20px;
    }
    .pg-payroll-hero-graphic,
    .pg-payroll-hero-image-box,
    .pg-hero-graphic,
    .pg-hero-image-box {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 260px;
        justify-content: center;
    }
    .pg-payroll-hero-img,
    .pg-hero-img {
        max-height: 260px;
        object-position: center;
        -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    }
}

@media (max-width: 768px) {
    .pg-payroll-hero-title {
        font-size: 32px;
    }

    .pg-legal-card {
        padding: 28px 20px;
    }

    .pg-legal-intro {
        font-size: 16px;
    }

    .pg-legal-body h2 {
        font-size: 1.25rem;
        margin-top: 32px;
    }

    .pg-legal-body li,
    .pg-legal-body p {
        font-size: 16px;
    }
}
