/* Firehub Policy Pages - chỉ tác động đến shortcode của plugin. */
.firehub-policy-page {
    --fh-red: #c5161d;
    --fh-red-dark: #981118;
    --fh-red-light: #fff3f3;
    --fh-heading: #111827;
    --fh-text: #263342;
    --fh-muted: #64748b;
    --fh-border: #e2e8f0;
    --fh-soft: #f8fafc;
    --fh-white: #fff;
    position: relative;
    left: 50%;
    width: min(1050px, calc(100vw - 30px));
    max-width: 1050px !important;
    margin: 30px 0 70px;
    padding: 0;
    transform: translateX(-50%);
    color: var(--fh-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.75;
}

.firehub-policy-page,
.firehub-policy-page *,
.firehub-policy-page *::before,
.firehub-policy-page *::after {
    box-sizing: border-box;
}

body.firehub-policy-active .entry-header > .entry-title,
body.firehub-policy-active .page-header > .entry-title,
body.firehub-policy-active main > .page-header {
    display: none;
}

.firehub-policy-page .fh-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 28px;
    padding: 40px 42px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #99151a 0%, #c5161d 55%, #df252d 100%);
    box-shadow: 0 15px 40px rgba(153, 21, 26, .18);
    color: #fff;
}

.firehub-policy-page .fh-hero::after {
    content: "";
    position: absolute;
    top: -105px;
    right: -70px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.firehub-policy-page .fh-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin: 0 0 13px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.firehub-policy-page .fh-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 900px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: clamp(27px, 3vw, 34px) !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    letter-spacing: -.4px;
}

.firehub-policy-page .fh-hero-desc {
    position: relative;
    z-index: 1;
    max-width: 875px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, .91) !important;
    font-size: 15px;
    line-height: 1.75;
}

.firehub-policy-page .fh-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 25px;
    margin-top: 19px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
}

.firehub-policy-page .fh-toc {
    margin: 0 0 30px;
    padding: 22px 25px;
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    background: var(--fh-white);
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.firehub-policy-page .fh-toc-title {
    display: block;
    margin: 0 0 13px;
    color: var(--fh-heading);
    font-size: 16px;
    font-weight: 750;
}

.firehub-policy-page .fh-toc-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.firehub-policy-page .fh-toc-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.firehub-policy-page .fh-toc-list li::before {
    display: none !important;
}

.firehub-policy-page .fh-toc-list a {
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 10px 13px;
    border-radius: 8px;
    background: var(--fh-soft);
    color: #374151 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}

.firehub-policy-page .fh-toc-list a:hover {
    background: var(--fh-red-light);
    color: var(--fh-red) !important;
}

.firehub-policy-page .fh-policy-intro {
    margin: 0 0 24px;
    padding: 23px 27px;
    border: 1px solid #ffd8d5;
    border-left: 5px solid var(--fh-red);
    border-radius: 0 12px 12px 0;
    background: #fff8f7;
}

.firehub-policy-page .fh-policy-section {
    overflow: hidden;
    margin: 0 0 22px;
    padding: 0 27px 24px;
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    background: var(--fh-white);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
    scroll-margin-top: 110px;
}

.firehub-policy-page .fh-policy-content > .fh-policy-group-heading {
    scroll-margin-top: 110px;
    margin: 40px 0 21px !important;
    padding: 15px 20px !important;
    border: 0 !important;
    border-left: 5px solid var(--fh-red) !important;
    border-radius: 0 10px 10px 0 !important;
    background: var(--fh-red-light) !important;
    color: var(--fh-heading) !important;
    font-family: inherit !important;
    font-size: 22px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
}

.firehub-policy-page .fh-policy-section > h2 {
    margin: 0 -27px 21px !important;
    padding: 16px 21px !important;
    border: 0 !important;
    border-left: 5px solid var(--fh-red) !important;
    border-radius: 0 !important;
    background: var(--fh-red-light) !important;
    color: var(--fh-heading) !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
}

.firehub-policy-page .fh-policy-content h3,
.firehub-policy-page .fh-policy-content h4,
.firehub-policy-page .fh-policy-content h5,
.firehub-policy-page .fh-policy-content h6 {
    margin: 25px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--fh-heading) !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.5 !important;
}

.firehub-policy-page .fh-law-ref {
    display: block;
    margin: -7px 0 17px;
    color: var(--fh-muted);
    font-size: 13px;
    font-style: italic;
}

.firehub-policy-page .fh-company-info {
    overflow: hidden;
    margin: 16px 0 20px;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    background: #fff;
}

.firehub-policy-page .fh-info-row {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    border-bottom: 1px solid var(--fh-border);
}

.firehub-policy-page .fh-info-row:last-child {
    border-bottom: 0;
}

.firehub-policy-page .fh-info-label {
    padding: 13px 16px;
    background: var(--fh-soft);
    color: #344054;
    font-weight: 700;
}

.firehub-policy-page .fh-info-value {
    min-width: 0;
    padding: 13px 16px;
    overflow-wrap: anywhere;
}

.firehub-policy-page .fh-note {
    margin-top: 17px;
    padding: 14px 17px;
    border-radius: 9px;
    background: #fffbea;
    color: #694f12;
    font-size: 14px;
}

.firehub-policy-page .fh-subsection {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #d9dde3;
}

.firehub-policy-page .fh-subtitle {
    display: block;
    margin-bottom: 8px;
    color: #1d2939;
    font-size: 16px;
    font-weight: 750;
}

.firehub-policy-page .fh-policy-content p {
    max-width: none !important;
    margin: 0 0 14px !important;
    color: var(--fh-text) !important;
    line-height: 1.78 !important;
}

.firehub-policy-page .fh-policy-content ul,
.firehub-policy-page .fh-policy-content ol {
    max-width: none !important;
    margin: 10px 0 17px !important;
    padding-left: 24px !important;
}

.firehub-policy-page .fh-policy-content ul ul,
.firehub-policy-page .fh-policy-content ol ol,
.firehub-policy-page .fh-policy-content ul ol,
.firehub-policy-page .fh-policy-content ol ul {
    margin-top: 7px !important;
    margin-bottom: 7px !important;
}

.firehub-policy-page .fh-policy-content li {
    margin: 8px 0 !important;
    padding-left: 3px !important;
    color: var(--fh-text) !important;
    line-height: 1.72 !important;
}

.firehub-policy-page .fh-policy-content li::marker {
    color: var(--fh-red);
    font-weight: 700;
}

.firehub-policy-page .fh-policy-content strong,
.firehub-policy-page .fh-policy-content b {
    color: #172033;
    font-weight: 750;
}

.firehub-policy-page .fh-policy-content a {
    color: var(--fh-red) !important;
    text-decoration: none !important;
}

.firehub-policy-page .fh-policy-content a:hover {
    color: var(--fh-red-dark) !important;
    text-decoration: underline !important;
}

.firehub-policy-page .fh-policy-content table {
    width: 100%;
    margin: 17px 0;
    border-collapse: collapse;
    border: 1px solid var(--fh-border);
    background: #fff;
}

.firehub-policy-page .fh-policy-content th,
.firehub-policy-page .fh-policy-content td {
    padding: 11px 13px;
    border: 1px solid var(--fh-border);
    text-align: left;
    vertical-align: top;
}

.firehub-policy-page .fh-policy-content th {
    background: var(--fh-soft);
    color: var(--fh-heading);
    font-weight: 700;
}

.firehub-policy-page .fh-company-signature {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 2px solid #edf0f3;
    color: var(--fh-red);
    text-align: right;
}

.firehub-policy-page .fh-company-signature strong {
    color: var(--fh-red);
    font-size: 16px;
}

.fh-policy-message {
    max-width: 900px;
    margin: 30px auto;
    padding: 14px 18px;
    border-left: 4px solid #d63638;
    background: #fff4f4;
}

@media (max-width: 767px) {
    .firehub-policy-page {
        width: calc(100vw - 20px);
        margin-top: 18px;
        margin-bottom: 45px;
        font-size: 15px;
    }

    .firehub-policy-page .fh-hero {
        padding: 28px 21px;
        border-radius: 13px;
    }

    .firehub-policy-page .fh-hero h1 {
        font-size: 25px !important;
    }

    .firehub-policy-page .fh-toc {
        padding: 18px;
    }

    .firehub-policy-page .fh-toc-list {
        grid-template-columns: 1fr;
    }

    .firehub-policy-page .fh-policy-intro {
        padding: 19px 18px;
    }

    .firehub-policy-page .fh-policy-section {
        padding: 0 18px 20px;
    }

    .firehub-policy-page .fh-policy-section > h2 {
        margin-right: -18px !important;
        margin-left: -18px !important;
        padding: 14px 15px !important;
        font-size: 18px !important;
    }

    .firehub-policy-page .fh-policy-content > .fh-policy-group-heading {
        margin-top: 31px !important;
        padding: 13px 15px !important;
        font-size: 19px !important;
    }

    .firehub-policy-page .fh-info-row {
        grid-template-columns: 1fr;
    }

    .firehub-policy-page .fh-info-label {
        padding-bottom: 5px;
    }

    .firehub-policy-page .fh-info-value {
        padding-top: 7px;
    }

    .firehub-policy-page .fh-policy-content h3,
    .firehub-policy-page .fh-policy-content h4,
    .firehub-policy-page .fh-policy-content h5,
    .firehub-policy-page .fh-policy-content h6 {
        font-size: 16px !important;
    }

    .firehub-policy-page .fh-policy-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .firehub-policy-page .fh-company-signature {
        text-align: left;
    }
}
