/**
 * Stylesheet for HomePower Policy Pages (Premium Readable Layout)
 * Used for Warranty, Returns, Shipping, Privacy, and Terms pages.
 */

/* 1. Header Banner Section */
.hp-policy-banner {
    position: relative;
    background: linear-gradient(135deg, #005a9c 0%, #009EE3 100%);
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    margin-bottom: 24px;
}

.hp-policy-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hp-policy-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hp-policy-breadcrumbs {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.hp-policy-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.hp-policy-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.hp-policy-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hp-policy-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Main Page Layout */
.hp-policy-layout {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* Sticky Sidebar Table of Contents */
.hp-policy-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.hp-policy-toc-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.hp-policy-toc-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.hp-policy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-policy-toc-item a {
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 550;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.hp-policy-toc-item a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 2px;
    background-color: #009EE3;
    margin-right: 0;
    transition: all 0.3s ease;
}

.hp-policy-toc-item a:hover {
    color: #009EE3;
}

.hp-policy-toc-item a:hover::before {
    width: 8px;
    margin-right: 8px;
}

.hp-policy-toc-item.active a {
    color: #009EE3;
    font-weight: 700;
}

.hp-policy-toc-item.active a::before {
    width: 8px;
    margin-right: 8px;
}

/* 3. Main Content Styling */
.hp-policy-content-wrap {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.hp-policy-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}

.hp-policy-section {
    scroll-margin-top: 120px;
    border-bottom: 1px dashed #f1f5f9;
}

.hp-policy-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.hp-policy-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-policy-section h2 span.section-number {
    color: #009EE3;
    font-weight: 900;
}

.hp-policy-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 12px;
}

.hp-policy-section p {
    font-size: 0.975rem;
    line-height: 1.8;
    color: #475569;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Custom Lists */
.hp-policy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-policy-list li {
    font-size: 0.975rem;
    line-height: 1.6;
    color: #475569;
    padding-left: 24px;
    position: relative;
}

.hp-policy-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #009EE3;
    border-radius: 50%;
}

/* Definition lists / Key-value structures (like Quy che hoat dong) */
.hp-policy-table-like {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.hp-policy-table-like tr {
    border-bottom: 1px solid #e2e8f0;
}

.hp-policy-table-like tr:last-child {
    border-bottom: none;
}

.hp-policy-table-like td {
    padding: 12px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.hp-policy-table-like td:first-child {
    font-weight: 700;
    color: #0f172a;
    background-color: #f8fafc;
    width: 200px;
}

/* Callout Box / Highlighting */
.hp-policy-callout {
    background-color: #f0f9ff;
    border-left: 4px solid #009EE3;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin: 24px 0;
}

.hp-policy-callout p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #0369a1;
    font-weight: 500;
}

/* Contact support box at the end of page */
.hp-policy-contact-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-policy-contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-policy-contact-icon {
    width: 40px;
    height: 40px;
    background-color: #009EE3;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-policy-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hp-policy-contact-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-policy-contact-grid {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .hp-policy-contact-grid {
        grid-template-cols: 1fr;
        gap: 8px;
    }
}

.hp-policy-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-policy-contact-item-icon {
    color: #009EE3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hp-policy-contact-item-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hp-policy-contact-item-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.hp-policy-contact-item-text strong {
    color: #1e293b;
    display: inline;
}

.hp-policy-contact-item-text strong::after {
    content: ": ";
}

.hp-policy-contact-item-text a {
    color: #009EE3;
    text-decoration: none;
    font-weight: 600;
}

.hp-policy-contact-item-text a:hover {
    text-decoration: underline;
}

/* 4. Responsive Design */
@media (max-width: 991px) {
    .hp-policy-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .hp-policy-sidebar {
        width: 100%;
    }
    
    .hp-policy-toc-card {
        position: relative;
        top: 0;
        padding: 20px;
    }
    
    .hp-policy-toc-list {
        display: grid;
        grid-template-cols: 1fr 1fr;
        gap: 10px;
    }
    
    .hp-policy-content-wrap {
        padding: 24px;
    }
    
    .hp-policy-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hp-policy-toc-list {
        grid-template-cols: 1fr;
    }
    
    .hp-policy-banner {
        padding: 40px 0;
        margin-bottom: 24px;
    }
}
