/* ==========================================================================
   CHINESE THEME REDESIGN - POLICY PAGES (CHÍNH SÁCH & ĐIỀU KHOẢN)
   Project: Cửa Kính Tín Đạt
   Color Palette:
   - Primary Accent (Red): #e80805 (Google Stitch Red / Imperial Red)
   - Secondary Accent (Blue): #0057d8 (Royal Blue)
   - Accent Gold: #c5a85c (Premium Bronze Gold)
   - Dark Text: #111827 (Deep Slate Black)
   - Muted Text: #4b5563 (Elegant Muted Slate)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700;800&display=swap');

.policy-page {
    background-color: #fcfbf9;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(232, 8, 5, 0.03) 0%, transparent 35rem),
        radial-gradient(circle at 100% 100%, rgba(0, 87, 216, 0.03) 0%, transparent 35rem);
    color: #111827;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.policy-shell {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   HERO HEADER AREA (Trung Hoa Style)
   ========================================================================== */
.policy-hero {
    position: relative;
    padding: 6.5rem 0 5.5rem;
    text-align: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f5f0 100%);
    border-bottom: 2px solid #e80805;
    overflow: hidden;
}

/* Geometric top and bottom repeating border images */
.policy-hero::before,
.policy-hero::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 16px;
    background-image: url("/images/bg-footer2.png");
    background-repeat: repeat-x;
    background-size: auto 16px;
    z-index: 3;
}

.policy-hero::before {
    top: 0;
}

.policy-hero::after {
    bottom: 0;
    transform: rotate(180deg);
}

.policy-hero__grid {
    position: relative;
    z-index: 2;
}

.policy-hero__copy {
    max-width: 850px;
    margin: 0 auto;
}

.policy-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0057d8;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    position: relative;
    padding: 0 1.5rem;
    text-transform: uppercase;
}

.policy-kicker::before,
.policy-kicker::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #e80805;
}

.policy-kicker::before {
    left: 0;
}

.policy-kicker::after {
    right: 0;
}

.policy-hero h1 {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    color: #e80805;
    margin: 0 0 1.2rem;
    line-height: 1.2;
    text-shadow: 1px 1px 0px rgba(197, 168, 92, 0.35);
}

.policy-hero p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
}

/* Elegant cloud divider under title */
.policy-hero-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.8rem;
}

.policy-hero-divider::before,
.policy-hero-divider::after {
    content: "";
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, #0057d8, transparent);
}

.policy-divider-cloud {
    width: 24px;
    height: 24px;
    background: url("/images/mask-img.png") no-repeat center;
    background-size: contain;
    margin: 0 1.2rem;
    filter: invert(15%) sepia(95%) saturate(6932%) hue-rotate(358deg) brightness(95%) contrast(112%);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.policy-body {
    padding: 4.5rem 0 6rem;
}

.policy-layout {
    display: grid;
    grid-template-columns: 19rem minmax(0, 1fr);
    gap: 2.2rem;
    align-items: start;
}

/* ==========================================================================
   LEFT STICKY NAVIGATION (Chinese Panel style)
   ========================================================================== */
.policy-nav {
    position: sticky;
    top: 7.4rem;
    background: #ffffff;
    border: 2px solid #e80805;
    border-radius: 8px;
    padding: 1.8rem 1.4rem;
    box-shadow: 0 15px 35px rgba(232, 8, 5, 0.03);
    transition: all 300ms ease;
}

/* Decorative key corner ornaments on the nav panel */
.policy-nav::before,
.policy-nav::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #e80805;
    pointer-events: none;
}

.policy-nav::before {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
}

.policy-nav::after {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
}

.policy-nav__title {
    display: block;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.15rem;
    color: #e80805;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed rgba(197, 168, 92, 0.4);
    text-align: center;
    position: relative;
}

.policy-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: all 250ms ease;
}

.policy-nav a:last-child {
    border-bottom: none;
}

.policy-nav a:hover, 
.policy-nav a.active {
    color: #0057d8;
    background-color: rgba(0, 87, 216, 0.03);
    padding-left: 0.9rem;
    border-left: 3px solid #0057d8;
}

/* ==========================================================================
   RIGHT CONTENT CONTAINER (Premium Chinese Scroll style)
   ========================================================================== */
.policy-content {
    background: #ffffff;
    border: 2px solid #e80805;
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.8rem, 4vw, 3.5rem);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    position: relative;
}

/* Corner geometric ornaments */
.policy-card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #e80805;
    pointer-events: none;
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Sections Styling */
.policy-section {
    scroll-margin-top: 8.5rem;
    position: relative;
}

.policy-section + .policy-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px dashed rgba(197, 168, 92, 0.45);
}

.policy-section h2 {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: #e80805;
    margin: 0 0 1.2rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.policy-section h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 20px;
    background-color: #0057d8;
    margin-right: 0.85rem;
    border-radius: 2px;
}

.policy-section p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 1.2rem;
    text-align: justify;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
}

.policy-section li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Bullet decoration looking like a gold star / diamond key */
.policy-section li::before {
    content: "✦";
    position: absolute;
    left: 0.3rem;
    top: 0;
    color: #c5a85c;
    font-size: 0.85rem;
}

.policy-section a {
    color: #0057d8;
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease;
    border-bottom: 1px dashed #0057d8;
}

.policy-section a:hover {
    color: #e80805;
    border-bottom-color: #e80805;
}

/* Contact Info list at the bottom */
.policy-contact-list {
    margin-top: 1.5rem;
    background: #fbfbf9;
    border: 1px solid rgba(197, 168, 92, 0.3);
    border-radius: 6px;
    padding: 1.5rem;
}

.policy-contact-list li {
    display: flex;
    align-items: flex-start;
    padding-left: 0 !important;
    margin-bottom: 0.9rem !important;
    border-bottom: 1px solid rgba(243, 244, 246, 0.8);
    padding-bottom: 0.8rem;
}

.policy-contact-list li:last-child {
    margin-bottom: 0 !important;
    border-bottom: none;
    padding-bottom: 0;
}

.policy-contact-list li::before {
    display: none !important;
}

.policy-contact-label {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 700;
    color: #e80805;
    width: 10rem;
    flex-shrink: 0;
    display: inline-block;
}

.policy-contact-value {
    color: #4b5563;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .policy-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding: 1.2rem;
    }

    .policy-nav__title {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .policy-nav a {
        border-bottom: none;
        padding: 0.4rem 0.8rem;
        background: #f8f9fa;
        border-radius: 4px;
        border: 1px solid #e5e7eb;
    }

    .policy-nav a:hover, 
    .policy-nav a.active {
        padding-left: 0.8rem;
        border-left: 1px solid #0057d8;
    }
}

@media (max-width: 576px) {
    .policy-hero {
        padding: 4.5rem 0 3.5rem;
    }

    .policy-body {
        padding: 2rem 0 4rem;
    }

    .policy-content {
        padding: 2.2rem 1.2rem;
    }
    
    .policy-nav a {
        font-size: 0.85rem;
    }
}
