/**
 * ==============================================================================
 * GIAO DIỆN CHÍNH SÁCH & QUY ĐỊNH (POLICY PAGES STYLING)
 * NHÀ XE HÒA HIỆP THÀNH PHÁT
 * Tone: Xanh Lá Thành Phát (#4BA82E) & Nâu Cà Phê Sang Trọng (#1E100B)
 * ==============================================================================
 */

/* --------------------------------------------------------------------------
 * 1. HERO BANNER & BREADCRUMB
 * -------------------------------------------------------------------------- */
.policy-hero {
    background: linear-gradient(135deg, #130906 0%, #1E100B 50%, #2A170F 100%);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(75, 168, 46, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
 * 2. SIDEBAR NAVIGATION
 * -------------------------------------------------------------------------- */
.policy-nav-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.policy-nav-item:hover:not(.active) {
    background-color: #F8FAFC;
    color: #4BA82E;
    transform: translateX(4px);
    border-color: #BBF7D0;
}

.policy-nav-item.active {
    background: linear-gradient(135deg, #4BA82E 0%, #3E9224 100%);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 4px 12px -2px rgba(75, 168, 46, 0.25);
}

.policy-nav-item.active i {
    color: #FFFFFF !important;
}

.policy-nav-item.active .policy-arrow {
    transform: translateX(3px);
    opacity: 1;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
 * 3. POLICY DOCUMENT CONTAINER & RICH CONTENT
 * -------------------------------------------------------------------------- */
.policy-document {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.04), 0 2px 10px -3px rgba(0, 0, 0, 0.02);
}

.policy-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.85;
    word-wrap: break-word;
}

@media (min-width: 640px) {
    .policy-content {
        font-size: 16px;
    }
}

/* Headings */
.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4,
.policy-content h5,
.policy-content h6 {
    color: #1E100B;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    letter-spacing: -0.015em;
}

.policy-content h1 {
    font-size: 1.65rem;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.5rem;
}

.policy-content h2 {
    font-size: 1.35rem;
    position: relative;
    padding-left: 14px;
    border-left: 4px solid #4BA82E;
}

.policy-content h3 {
    font-size: 1.15rem;
    color: #2B1711;
}

.policy-content h4 {
    font-size: 1.05rem;
    color: #4BA82E;
}

/* Paragraphs & Text */
.policy-content p {
    margin-top: 0.85em;
    margin-bottom: 0.85em;
    text-align: justify;
}

.policy-content strong {
    color: #1E100B;
    font-weight: 700;
}

.policy-content a {
    color: #4BA82E;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.policy-content a:hover {
    color: #31771C;
}

/* Lists */
.policy-content ul {
    list-style-type: none;
    margin-top: 0.85em;
    margin-bottom: 0.85em;
    padding-left: 0.5rem;
}

.policy-content ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.policy-content ul > li::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4BA82E;
    box-shadow: 0 0 0 2px rgba(75, 168, 46, 0.25);
}

.policy-content ol {
    list-style-type: decimal;
    margin-top: 0.85em;
    margin-bottom: 0.85em;
    padding-left: 1.5rem;
}

.policy-content ol > li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.5rem;
}

.policy-content ol > li::marker {
    color: #4BA82E;
    font-weight: 700;
}

/* Callouts & Alert Boxes */
.policy-content .bt-callout,
.policy-content .callout-info {
    border-left: 4px solid #4BA82E;
    background: #F0FDF4;
    padding: 16px 20px;
    border-radius: 0 16px 16px 0;
    margin: 24px 0;
    color: #166534;
    box-shadow: 0 2px 8px rgba(75, 168, 46, 0.08);
}

.policy-content .bt-callout-warning,
.policy-content .callout-warning {
    border-left: 4px solid #F59E0B;
    background: #FFFBEB;
    padding: 16px 20px;
    border-radius: 0 16px 16px 0;
    margin: 24px 0;
    color: #92400E;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.policy-content .bt-callout-hotline,
.policy-content .callout-danger {
    border-left: 4px solid #E11D48;
    background: #FFF1F2;
    padding: 16px 20px;
    border-radius: 0 16px 16px 0;
    margin: 24px 0;
    color: #9F1239;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

/* Tables */
.policy-content table,
.policy-content .bt-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.policy-content table th,
.policy-content .bt-price-table th {
    background: linear-gradient(135deg, #1E100B 0%, #2B1711 100%);
    color: #FFFFFF;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #4BA82E;
}

.policy-content table td,
.policy-content .bt-price-table td {
    border-bottom: 1px solid #F1F5F9;
    padding: 14px 18px;
    color: #334155;
    font-size: 0.925rem;
}

.policy-content table tr:last-child td,
.policy-content .bt-price-table tr:last-child td {
    border-bottom: none;
}

.policy-content table tr:nth-child(even),
.policy-content .bt-price-table tr:nth-child(even) {
    background: #F8FAFC;
}

.policy-content table tr:hover td,
.policy-content .bt-price-table tr:hover td {
    background: #F0FDF4;
}

/* Blockquotes */
.policy-content blockquote {
    border-left: 4px solid #F59E0B;
    background: #FAFAFA;
    padding: 16px 22px;
    font-style: italic;
    color: #475569;
    border-radius: 0 14px 14px 0;
    margin: 20px 0;
}

/* Horizontal Rules */
.policy-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #CBD5E1, transparent);
    margin: 32px 0;
}

/* Print Optimization */
@media print {
    body {
        background: #FFFFFF !important;
    }
    #site-header,
    footer,
    .policy-hero,
    .policy-sidebar,
    .policy-toolbar,
    .policy-back-btn,
    .floating-contact-btn {
        display: none !important;
    }
    .policy-document {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
}
