/* Terms and Conditions Page Styling */

/* Container and Layout */
.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Typography */
.terms-container h1 {
    color: #1e3c72;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.terms-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1e3c72, #ff6b35);
    border-radius: 2px;
}

.terms-container h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #f0f4f8;
    position: relative;
}

.terms-container h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: #ff6b35;
}

.terms-container h3 {
    color: #2c5282;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.terms-container h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-size: 0.8em;
}

/* Paragraphs and Text */
.terms-container p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
}

.terms-container p strong {
    color: #2d3748;
    font-weight: 600;
}

/* Lists */
.terms-container ul {
    margin: 20px 0;
    padding-left: 0;
}

.terms-container li {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    list-style: none;
}

.terms-container li::before {
    content: '•';
    color: #ff6b35;
    font-weight: bold;
    position: absolute;
    left: 15px;
    font-size: 1.2em;
}

.terms-container li ul li::before {
    content: '◦';
    color: #1e3c72;
    left: 15px;
}

.terms-container li ul li ul li::before {
    content: '▪';
    color: #718096;
    left: 15px;
}

/* Nested Lists */
.terms-container li ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.terms-container li ul li {
    padding-left: 25px;
    font-size: 0.95rem;
}

.terms-container li ul li ul li {
    padding-left: 20px;
    font-size: 0.9rem;
}

/* Tables */
.terms-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.terms-container table th {
    background: linear-gradient(135deg, #1e3c72, #2d5a87);
    color: #fff;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-container table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.95rem;
}

.terms-container table tr:nth-child(even) {
    background: #f7fafc;
}

.terms-container table tr:hover {
    background: #edf2f7;
    transition: background-color 0.2s ease;
}

/* Sections */
.terms-container section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    position: relative;
}

.terms-container section:nth-child(even) {
    background: #fff;
    border-left-color: #1e3c72;
}

/* Company Information Section */
.terms-container section:first-of-type {
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    border: none;
    text-align: center;
    padding: 30px;
}

.terms-container section:first-of-type p {
    margin-bottom: 8px;
    font-weight: 500;
}

/* Breadcrumb Styling */
.breadcrumb__content h1 {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.breadcrumb span {
    color: #fff;
    font-size: 1rem;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff6b35;
}

.breadcrumb-separator {
    margin: 0 10px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .terms-container h1 {
        font-size: 2.2rem;
    }
    
    .terms-container h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .terms-container {
        margin: 15px;
        padding: 25px 15px;
        border-radius: 8px;
    }
    
    .terms-container h1 {
        font-size: 1.9rem;
        margin-bottom: 25px;
    }
    
    .terms-container h2 {
        font-size: 1.4rem;
        margin-top: 30px;
    }
    
    .terms-container h3 {
        font-size: 1.2rem;
        padding-left: 15px;
    }
    
    .terms-container section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .terms-container table {
        font-size: 0.85rem;
    }
    
    .terms-container table th,
    .terms-container table td {
        padding: 8px 6px;
    }
    
    .terms-container li {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .terms-container {
        margin: 10px;
        padding: 20px 12px;
    }
    
    .terms-container h1 {
        font-size: 1.6rem;
    }
    
    .terms-container h2 {
        font-size: 1.3rem;
    }
    
    .terms-container h3 {
        font-size: 1.1rem;
    }
    
    .terms-container p,
    .terms-container li {
        font-size: 0.9rem;
    }
    
    .terms-container section {
        padding: 15px 10px;
    }
    
    .terms-container table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Print Styles */
@media print {
    .terms-container {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    .terms-container section {
        background: #fff !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .terms-container h1,
    .terms-container h2,
    .terms-container h3 {
        color: #000 !important;
    }
    
    .breadcrumb__area {
        display: none;
    }
}

/* Accessibility Improvements */
.terms-container h1:focus,
.terms-container h2:focus,
.terms-container h3:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.terms-container a {
    color: #1e3c72;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-container a:hover,
.terms-container a:focus {
    color: #ff6b35;
    outline: none;
}

/* Table of Contents (if added) */
.terms-toc {
    background: #f0f4f8;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.terms-toc h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    padding-left: 0;
}

.terms-toc h3::before {
    display: none;
}

.terms-toc ul {
    columns: 2;
    column-gap: 30px;
}

.terms-toc li {
    padding-left: 20px;
    margin-bottom: 8px;
    break-inside: avoid;
}

.terms-toc li::before {
    content: '→';
    color: #ff6b35;
    left: 0;
}

.terms-toc a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
}

.terms-toc a:hover {
    color: #ff6b35;
}

@media (max-width: 768px) {
    .terms-toc ul {
        columns: 1;
    }
}
