body *{
    padding: 0;
    margin: 0;
}
.legal-section{
    min-height: 100vh;
    background: #ECE5D1;
    padding: 2rem 0;
}
.legal-section .container.legal-card{
    position: relative;
    --bs-gutter-x: 0;
    max-width: 1440px;
    margin: auto;
    border: 1px solid #CFD2D2;
    height: calc(100vh - 4rem);
    /* max-height: 800px; */
    /* overflow: hidden; */
    border-radius: 12px;

    display: flex;
  flex-direction: column;
}
.legal-section .legal-header{
    border-radius: 12px 12px 0 0;
    border: 1px solid #CFD2D2;
    background: linear-gradient(90deg, #E9E5D9 0%, #E5E8E4 100%);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    position: relative;
    flex: 0 0 auto;
}
.legal-header .decorative-piece{
    position: absolute;
    right: 1.5rem;
    top: 2rem;
}
.legal-section .legal-header .icon-box{
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, #FFE500 6.17%, #FFAD00 93.83%);
    box-shadow: 0 8px 24px 0 rgba(255, 190, 0, 0.18);
}
.header-content-box{
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr;
}
.header-content-box h2{
    color: #19213D;
    font-family: "Cinzel Decorative";
    font-size: clamp(1.5rem, 1.35rem + 0.75vw, 1.75rem);
    font-style: normal;
    font-weight: 900;
}
.header-content-box p{
    color: #657087;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 500;
}



.legal-body {
    display: grid;
    grid-template-columns: 1fr 5fr;
    /* gap: 10px; */
    overflow: hidden;
    padding-bottom: 2rem;
    flex: 1 1 auto;
    overflow-y: auto;
}
.legal-sidebar {
    border-right: 1px solid #CFD2D2;
    border-left: 1px solid #CFD2D2;
    background: #E4E6DF;
    width: 100%;
    padding: 1rem;
}
.nav-tabs-custom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.tab-btn{
    width: 100%;
    border: 1px solid #CBD0D3;
    background: #ECEBE4;
    padding: 10px;
    border-left: 4px solid #AFB6BF;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
}
.tab-btn.active {
    border-color: #D0A222;
    background: linear-gradient(90deg, #F1D976 0%, #ECE2AD 100%);
    box-shadow: 0 8px 20px 0 rgba(112, 87, 13, 0.10);
}
.tab-num{
    color: #9D7100;
    font-family: Lalezar;
    font-size: 18px;
    font-weight: 300;
}
.tab-text{
    color: #687187;
    font-family: Lalezar;
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
}
.tab-btn.active .tab-text {
    color: #000;
}

.legal-main {
    display: grid;
    padding-left: 10px;
    grid-template-columns: 1fr;
    gap: 5px;   
    height: 100%; 
    overflow-y: scroll;
    position: relative;
    padding: 1rem;
    background-color: #F5F2E9;
}



/* ====================================================== */
.content-section {
     display: none;
}
.content-section.active {
    display: block;
}
/* ====================================================== */

.content-overline{
    color: #9D7100;
    font-family: Poppins;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.content-title{
    color: #19213D;
    font-family: Lalezar;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
}
.content-description{
    color: #586176;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
}
.info-box{
    margin: 1rem 0;
    border-radius: 7px;
    width: fit-content;
    padding: 1rem;
    display: flex;
    gap:2rem;
    border: 1px solid #CED2D3;
    background: #E7E8E2;
}
.info-box .info-label{
    color: #6D7586;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
}
.info-box .info-value{
    color: #252D48;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
}
.policy-title{
    color: #19213D;
    font-family: Lalezar;
    font-size: 18px;
    font-weight: 400;
}
.policy-list{
    color: #586176;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    list-style: none;
    margin-bottom: 1rem;
}
.policy-list li {
     position: relative;
     padding-left: 1rem;
     color: #4b5563;
     font-size: 0.875rem;
     line-height: 175%;
 }
.policy-list li::before {
     content: '';
     position: absolute;
     left: 0;
     top: 0.5rem;
     width: 6px;
     height: 6px;
     background-color: #c0961b;
     border-radius: 50%;
}
.policy-para {
    color: #586176;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    list-style: none;
    margin-bottom: 1rem;
}
.policy-para a, .policy-list li a{
        color: #586176;
        font-weight: 600;

}

.space {
     padding: 2rem 0;
}
.legal-footer{
    position: absolute;
    bottom: 0;
    border-top: 1px solid #D0D2CE;
    background: #E9E8DF; 
    border-radius: 0 0 12px 12px;
    width: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    flex-direction: row;
    gap: 10px;
    flex: 0 0 auto;
}
.legal-footer .form-label{
    color: #3E485F;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
}
.legal-footer .footer-actions{
    display: flex;
    gap: 1rem;
}
.legal-footer .foot-btn{
    padding: 8px 12px;
    border: 1.198px solid #AEB4BE;
    background: #DCDEDB;
    color: #303950;
    font-family: Lalezar;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}
.legal-footer .foot-btn.dark{
    border-color: #C89508;
    background: linear-gradient(180deg, #EECB43 0%, #DCA81B 100%);
    color: #000;
}


@media screen and (max-width: 860px) {
    .legal-section {
        padding: 1rem;
    }
    .legal-body {
        grid-template-columns: 1fr;
    }
    .nav-tabs-custom {
        grid-template-columns: 1fr 1fr;
    }
    .tab-btn {
        border-left: 1px solid #CBD0D3;
        border-bottom: 4px solid #AFB6BF;
        gap: 10px;
        justify-content: center;
    }
    .legal-footer {
        display: flex;
        flex-direction: column;
        align-items: center; 
        padding: 1rem;    
        gap: 5px;
    }
}
@media screen and (max-width: 516px){
    .legal-section .container.legal-card {
        height: calc(100vh - 2rem);
    }
    .info-box{
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .legal-header .decorative-piece{
        display: none;
    }
    .space {
    padding: 2.5rem 0;
}
}
































