/* ===== POLICY PAGES — matches halosim.com design ===== */

.policy-hero {
    background: url('https://plus.unsplash.com/premium_photo-1661432741512-b044605fb5bb?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.policy-header {
    z-index: 3;
    max-width: 600px;
    position: relative;
}

.policy-header h3 {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
}

.policy-header p {
    font-size: 0.9rem;
    color: #fff;
}

/* ---- Content Layout ---- */
.policy-content {
    padding: 30px 6%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
}

.policy-informations {
    max-width: 700px;
    flex: 1;
}

.policy-informations section {
    border-bottom: 2px dotted var(--brand-primary-mid, rgba(242,166,90,0.35));
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.policy-informations section:last-child {
    border-bottom: none;
}

.policy-content h2 {
    font-size: 1.9rem;
    color: var(--brand-primary, #F2A65A);
    font-weight: 600;
    margin-bottom: 10px;
}

.policy-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.policy-content p,
.policy-content ul,
.policy-content ol {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

.policy-content ul,
.policy-content ol {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.policy-content a {
    color: var(--brand-primary, #F2A65A);
    text-decoration: underline;
}

.policy-content a:hover {
    opacity: 0.8;
}

/* ---- Sticky Sidebar ---- */
.sticky-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
    padding: 30px;
    background: var(--brand-primary, #F2A65A);
    border-radius: 24px;
    border: 1px solid var(--brand-primary-deep, #d4803a);
    color: white;
    min-width: 220px;
}

.sticky-sidebar h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 20px;
    opacity: 0.8;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 15px;
}

.toc-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    display: block;
    color: rgba(255, 255, 255, 0.85) !important;
}

.toc-link:hover,
.toc-link.active {
    color: #fff !important;
    padding-left: 5px;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .policy-content {
        flex-direction: column-reverse;
    }
    .sticky-sidebar {
        display: none;
    }
    .policy-header h3 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .policy-content {
        padding: 20px 4%;
    }
    .policy-header h3 {
        font-size: 2rem;
    }
}
