/* ============================================
   POLICIES.CSS
   DemiWoods LLC - Policy Pages Stylesheet
   Font: Poppins, sans-serif
   Heading Color: #000672
   Theme Primary: #c66e14
   Theme Secondary: #000672
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.demi-policy-section {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    width: 100%;
    padding: 3rem 1.5rem 4rem;
}

.policy-container {
    max-width: 1280px;
    margin: 0 auto;
}

.policy-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.policy-badge {
    display: inline-block;
    background: rgba(198, 110, 20, 0.1);
    color: #c66e14;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.policy-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #000672;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.policy-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.9rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 0.3rem 1rem;
    border-radius: 30px;
}

.meta-item strong {
    color: #000672;
    font-weight: 600;
}

.policy-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eef2f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s;
}

.policy-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.policy-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3e50;
    margin-bottom: 1rem;
}

.policy-intro strong {
    color: #c66e14;
    font-weight: 600;
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000672;
    margin-bottom: 1rem;
    border-left: 4px solid #c66e14;
    padding-left: 1rem;
}

.policy-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000672;
    margin: 1rem 0 0.5rem 0;
}

.policy-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #2d3e50;
    margin-bottom: 0.8rem;
}

.policy-card ul, .policy-card ol {
    margin: 0.5rem 0 1rem 1.8rem;
    color: #2d3e50;
    line-height: 1.65;
}

.policy-card li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.policy-card a {
    color: #c66e14;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.policy-card a:hover {
    color: #b05d0e;
    text-decoration: underline;
}

.toc-card {
    background: #fafcff;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid #eef2f9;
}

.toc-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000672;
    margin-bottom: 1rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
}

.toc-link {
    font-size: 0.85rem;
    color: #c66e14;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.toc-link:hover {
    color: #000672;
    transform: translateX(4px);
}

.policy-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf3fa;
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .demi-policy-section {
        padding: 2rem 1rem;
    }
    .policy-main-title {
        font-size: 2rem;
    }
    .section-heading {
        font-size: 1.3rem;
    }
    .policy-card {
        padding: 1.2rem 1.2rem;
    }
    .toc-card {
        padding: 1rem 1.2rem;
    }
    .toc-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .policy-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .policy-main-title {
        font-size: 1.6rem;
    }
    .section-heading {
        font-size: 1.2rem;
    }
    .toc-grid {
        grid-template-columns: 1fr;
    }
    .policy-card {
        padding: 1rem;
    }
}

@media print {
    .demi-policy-section {
        padding: 0;
    }
    .toc-card {
        display: none;
    }
    .policy-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}