/* ===== LEGAL PAGE SCOPE ISOLATION ===== */
.legal-page .legal-content section {
    background-color: transparent !important;
}

/* ===== LEGAL HEADER ===== */
.legal-header {
    background: linear-gradient(135deg, #0C0B15 0%, #15142A 100%);
    border-bottom: 1px solid #2A2838;
    position: relative;
    z-index: 100;
}

.legal-header .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.legal-header .nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: #D46842;
    letter-spacing: -0.5px;
}

.legal-header .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.legal-header .nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #A09B90;
    padding: 6px 0;
    position: relative;
}

.legal-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D46842;
    transition: width 0.25s ease;
}

.legal-header .nav-links a:hover,
.legal-header .nav-links a.active {
    color: #E9E5DC;
}

.legal-header .nav-links a:hover::after,
.legal-header .nav-links a.active::after {
    width: 100%;
}

/* ===== LEGAL CONTENT ===== */
.legal-content {
    background-color: #F2EFE7;
    padding: 60px 0 80px;
    min-height: 60vh;
}

.legal-intro {
    text-align: center;
    margin-bottom: 50px;
}

.legal-intro h1 {
    font-size: 40px;
    font-weight: 800;
    color: #1C1A24;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.legal-effective {
    font-size: 14px;
    color: #737068;
    font-weight: 500;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background-color: #FFFFFF;
    border: 1px solid #D8D4CA;
    border-radius: 10px;
    padding: 32px 36px;
    margin-bottom: 50px;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    color: #1C1A24;
    margin-bottom: 18px;
}

.toc-list {
    list-style: decimal;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
}

.toc-list li {
    font-size: 14px;
    line-height: 1.6;
}

.toc-list a {
    color: #D46842;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.toc-list a:hover {
    color: #C05A35;
    border-bottom-color: #C05A35;
}

/* ===== LEGAL SECTIONS ===== */
.legal-content section {
    background-color: #FFFFFF;
    border: 1px solid #D8D4CA;
    border-radius: 10px;
    padding: 36px 40px;
    margin-bottom: 28px;
}

.legal-content section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1C1A24;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EBE7DE;
    letter-spacing: -0.3px;
}

.legal-content section p {
    font-size: 15px;
    color: #4A4640;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content section p:last-child {
    margin-bottom: 0;
}

.legal-content section strong {
    color: #1C1A24;
    font-weight: 700;
}

/* ===== LEGAL ADDRESS ===== */
.legal-address {
    font-style: normal;
    font-size: 15px;
    color: #4A4640;
    line-height: 1.8;
    margin: 16px 0;
    padding: 20px 24px;
    background-color: #F2EFE7;
    border-left: 4px solid #D46842;
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .toc-list {
        grid-template-columns: 1fr;
    }

    .legal-content section {
        padding: 28px 22px;
    }

    .legal-intro h1 {
        font-size: 30px;
    }

    .legal-content section h2 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .toc {
        padding: 24px 18px;
    }

    .legal-content section {
        padding: 22px 16px;
    }
}
