/* Policy Pages Styling */
.policy-content {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.policy-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.policy-section h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    word-wrap: break-word;
}

.policy-section h4 {
    color: #333;
    margin-bottom: 10px;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 500;
    word-wrap: break-word;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 0;
}

.policy-section ul li {
    margin-bottom: 8px;
    padding-left: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 0;
}

.policy-section ol li {
    margin-bottom: 8px;
    padding-left: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-section p {
    margin-bottom: 15px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-info {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.contact-info h4 {
    color: #007bff;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Contact Form Styling */
.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 30px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Container and Layout Fixes */
.middle-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.sub-page.container {
    max-width: 1200px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Text Breaking and Wrapping */
.policy-section strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-section a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Long URLs and Text */
.policy-section p,
.policy-section li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-section {
        padding: 15px;
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .policy-section h3 {
        font-size: 1.2em;
        line-height: 1.3;
    }
    
    .policy-section h4 {
        font-size: 1.05em;
        line-height: 1.3;
    }
    
    .policy-section ul,
    .policy-section ol {
        margin-left: 15px;
        padding-left: 0;
    }
    
    .policy-section p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .contact-info {
        padding: 10px;
    }
    
    .sub-page.container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .policy-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .policy-section h3 {
        font-size: 1.1em;
    }
    
    .policy-section h4 {
        font-size: 1em;
    }
    
    .policy-section ul,
    .policy-section ol {
        margin-left: 10px;
    }
    
    .policy-section p,
    .policy-section li {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .policy-content {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .policy-section {
        background: none;
        border: none;
        padding: 10px 0;
        page-break-inside: avoid;
    }
}

/* Specific fixes for contact information and long text */
.policy-section .contact-details,
.policy-section .business-info {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Handle long email addresses and URLs */
.policy-section a[href^="mailto:"],
.policy-section a[href^="http"] {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Fix for definition lists and terms */
.policy-section dl,
.policy-section dt,
.policy-section dd {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure tables are responsive if any */
.policy-section table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

.policy-section td,
.policy-section th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 0;
}

/* Fix for any code blocks or preformatted text */
.policy-section pre,
.policy-section code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
}

/* Additional mobile fixes */
@media (max-width: 576px) {
    .breadcrumb-container {
        padding: 5px !important;
        font-size: 12px !important;
    }
    
    .top-title h2 {
        font-size: 1.5em;
        line-height: 1.2;
    }
    
    .top-title span {
        font-size: 0.9em;
        display: block;
        margin-top: 5px;
    }
}