*, *::before, *::after {
    box-sizing: border-box;
}

.terms-container {
    padding: clamp(20px, 5vw, 50px);
    margin-inline: 10%;
    text-align: left;
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
}

.terms-container * {
    max-width: 100%;
    overflow-wrap: break-word;
}

.terms-container img {
    height: auto;
}

.terms-container p,
.terms-container li {
    color: #4b5563;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    margin-bottom: 15px;
}

.terms-container h2,
.terms-container h3 {
    color: #1f2937;
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: clamp(18px, 2.5vw, 24px);
}

.terms-header h1 {
    color: #D6482C;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.2;
    margin-block: 15px 20px;
}

.back-button {
    color: #D6482C;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    column-gap: 10px;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    transition: opacity 0.2s ease;
}

.back-button:hover {
    opacity: 0.8;
}

.back-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.terms-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left;
    
    /* Yahan humne left-right 2 columns bana diye hain */
    column-count: 2;
    column-gap: 40px;
}

/* Main office heading aur intro paragraphs dono columns ke upar span karenge */
.terms-content > h2:first-of-type,
.terms-content > p {
    column-span: all;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-content > h2:first-of-type {
    color: #D6482C;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 15px;
}

/* "The Community Corp Offices" heading bhi poori width legi */
.terms-content > h2:not(:first-of-type) {
    column-span: all;
    color: #D6482C;
    font-size: clamp(22px, 3.5vw, 28px);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Community offices ke subheadings aur details */
.terms-content h3 {
    color: #222;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 6px;
    break-inside: avoid; /* Text beech mein se break nahi hoga */
}

.terms-content h3 + p {
    column-span: none; /* Individual office paragraphs column ke andar rahenge */
    margin-bottom: 12px;
    color: #666;
    font-size: 15px;
    break-inside: avoid;
}

.terms-content a {
    color: #D6482C;
    word-break: break-all;
}


/* ================= RESPONSIVE DESIGN ================= */

@media screen and (max-width: 900px) {
    .terms-content {
        column-count: 1; /* Chote screens par wapas single column ho jayega */
        margin: 20px 15px;
        padding: 0;
    }
}
/* ================= RESPONSIVE MEDIA QUERIES ================= */

@media screen and (max-width: 900px) {
    .terms-container {
        margin-inline: 4%;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 600px) {
    .terms-container {
        margin-inline: 0;
        padding: 20px 16px;
    }

    .terms-header h1 {
        font-size: 24px;
    }
}