/* Policy Content Styling - Optimized for Word HTML Output */
.policy-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 3rem;
    line-height: 1.8;
    color: #4a5568;
    font-size: 16px;
}

/* Reset Word Styles */
.policy-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Headings */
.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4,
.policy-content h5,
.policy-content h6 {
    color: #1a202c;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 1em;
}

.policy-content h1:first-child,
.policy-content h2:first-child,
.policy-content h3:first-child,
.policy-content h4:first-child,
.policy-content h5:first-child,
.policy-content h6:first-child {
    margin-top: 0;
}

.policy-content h1 {
    font-size: 2em;
    margin-top: 0;
}

.policy-content h2 {
    font-size: 1.75em;
}

.policy-content h3 {
    font-size: 1.5em;
}

.policy-content h4 {
    font-size: 1.25em;
}

.policy-content h5 {
    font-size: 1.1em;
}

.policy-content h6 {
    font-size: 1em;
}

/* Paragraphs */
.policy-content p {
    margin-bottom: 0.75em;
    margin-top: 0.75em;
    line-height: 1.8;
    color: #4a5568;
}

.policy-content p:first-child {
    margin-top: 0;
}

.policy-content p:last-child {
    margin-bottom: 0;
}

/* Hide paragraphs with only nbsp or whitespace */
.policy-content p:empty,
.policy-content p:blank {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

/* Style for paragraphs that appear empty but have nbsp */
.policy-content p.empty-paragraph {
    display: none !important;
    margin: 0 !important;
    height: 0 !important;
}

/* Force show paragraphs with images - override empty-paragraph */
.policy-content p:has(img),
.policy-content p img {
    display: block !important;
    margin: 1.5em auto !important;
}

/* Strong and Bold */
.policy-content strong,
.policy-content b {
    color: #1a202c;
    font-weight: 600;
}

/* Links */
.policy-content a {
    color: #3182ce;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.policy-content a:hover {
    color: #2c5282;
}

/* Lists */
.policy-content ul,
.policy-content ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 2em;
}

.policy-content ul {
    list-style-type: disc;
}

.policy-content ol {
    list-style-type: decimal;
}

.policy-content li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.8;
    color: #4a5568;
}

.policy-content li > p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Nested Lists */
.policy-content ul ul,
.policy-content ul ol,
.policy-content ol ul,
.policy-content ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.policy-content ul ul {
    list-style-type: circle;
}

.policy-content ul ul ul {
    list-style-type: square;
}

/* Horizontal Rule */
.policy-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2em 0;
}

/* Header tag inside content (from Word) */
.policy-content header {
    display: block;
    margin: 2em 0;
}

.policy-content header h1,
.policy-content header h2,
.policy-content header h3,
.policy-content header h4 {
    margin-top: 0;
}

/* Tables (if any from Word) */
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.policy-content table th,
.policy-content table td {
    border: 1px solid #e2e8f0;
    padding: 0.75em;
    text-align: left;
}

.policy-content table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #1a202c;
}

/* Blockquote */
.policy-content blockquote {
    border-left: 4px solid #cbd5e0;
    padding-left: 1.5em;
    margin: 1.5em 0;
    color: #4a5568;
    font-style: italic;
}

/* Code (if any) */
.policy-content code {
    background-color: #f7fafc;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
}

.policy-content pre {
    background-color: #f7fafc;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.policy-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Images (if any) */
.policy-content img {
    max-width: 100%;
    width: auto;
    max-height: 600px;
    height: auto;
    border-radius: 6px;
    margin: 1.5em auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Paragraphs containing images should be centered */
.policy-content p:has(img) {
    text-align: center;
    margin: 1.5em 0;
}

/* For smaller images, limit their width */
.policy-content img[width] {
    max-width: min(100%, 800px);
}

/* Remove Word's weird spacing */
.policy-content p:empty {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .policy-content {
        padding: 1.5rem;
        font-size: 15px;
    }
    
    .policy-content h1 {
        font-size: 1.75em;
    }
    
    .policy-content h2 {
        font-size: 1.5em;
    }
    
    .policy-content h3 {
        font-size: 1.35em;
    }
    
    .policy-content h4 {
        font-size: 1.2em;
    }
    
    .policy-content ul,
    .policy-content ol {
        padding-left: 1.5em;
    }
}

@media (max-width: 480px) {
    .policy-content {
        padding: 1rem;
        font-size: 14px;
    }
}
