/* Barangay Terms and Conditions - Clean Professional Layout */

/* Main Layout */
.terms-main {
    background-color: #fff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.terms-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Legal Navigation Tabs */
.legal-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.nav-link {
    display: inline-block;
    padding: 18px 28px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #023E8A;
    text-decoration: none;
    background-color: #f8f9fa;
}

.nav-link.active {
    color: #023E8A;
    border-bottom-color: #0077B6;
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Main Content Container */
.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 10px;
    background-color: white;
}

/* Page Title and Subtitle */
.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #023E8A;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
}

.page-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #0077B6;
    margin: 0 0 16px 0;
    text-align: center;
    line-height: 1.3;
}

.effective-dates {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 35px;
    border-bottom: 2px solid #e9ecef;
}

.effective-dates p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
}

.content-section:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #023E8A;
    margin: 0 0 24px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.subsection {
    margin-bottom: 32px;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #0077B6;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

/* Text Content */
.section-text {
    font-size: 16px;
    line-height: 1.7;
    color: #343a40;
    margin: 0 0 16px 0;
    text-align: justify;
}

.section-text:last-child {
    margin-bottom: 0;
}

.section-text strong {
    font-weight: 600;
    color: #023E8A;
}

/* Lists */
.section-list {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.section-list li {
    font-size: 16px;
    line-height: 1.7;
    color: #343a40;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.section-list li:last-child {
    margin-bottom: 0;
}

.section-list li::before {
    content: '•';
    color: #0077B6;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Contact Section Styling */
.contact-section {
    background: linear-gradient(135deg, #023E8A, #0077B6);
    color: white;
    padding: 32px;
    border-radius: 12px;
    margin-top: 16px;
}

.contact-section .section-title {
    color: white;
    margin-bottom: 20px;
}

.contact-section .section-text {
    color: #e3f2fd;
    text-align: left;
}

.contact-section .section-text strong {
    color: white;
}

.contact-details {
    margin-top: 16px;
}

.contact-details .section-text {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
    
    .terms-container {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .legal-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-link {
        padding: 16px 20px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .terms-container {
        padding: 32px 20px;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .page-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .subsection-title {
        font-size: 16px;
    }
    
    .effective-dates {
        margin-bottom: 32px;
    }
    
    .content-section {
        margin-bottom: 36px;
        padding-bottom: 24px;
    }
    
    .subsection {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .terms-container {
        padding: 24px 16px;
    }
    
    .page-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .subsection-title {
        font-size: 15px;
    }
    
    .section-text,
    .section-list li {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .contact-section {
        padding: 24px 20px;
        border-radius: 8px;
    }
}

/* Accessibility and Focus States */
.nav-link:focus,
.nav-link:focus-visible {
    outline: 2px solid #0077B6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .legal-nav {
        display: none;
    }
    
    .terms-wrapper,
    .terms-container {
        box-shadow: none;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}