.agreement-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 70px 0;
}

.agreement-sidebar {
    min-width: 220px;
    max-width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(60, 60, 120, 0.08);
    margin-right: 32px;
    padding: 2rem 1.2rem 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 95px;
    height: fit-content;
}

.agreement-sidebar h3 {
    font-size: 1.1rem;
    color: #0d6efd;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.agreement-sidebar a {
    display: block;
    color: #444;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.agreement-sidebar a.active, .agreement-sidebar a:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

.agreement-main {
    flex: 1;
    max-width: 700px;
    width: 100%;
}

.agreement-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(60, 60, 120, 0.10);
    padding: 2.5rem 2rem;
    width: 100%;
    border: 1px solid #e6e6e6;
    transition: box-shadow 0.2s;
}

.agreement-card:hover {
    box-shadow: 0 12px 40px rgba(60, 60, 120, 0.18);
}

.agreement-card h1 {
    font-size: 2.1rem;
    color: #0d6efd;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.agreement-card h2 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.agreement-card p, .agreement-card ul {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

.agreement-card ul {
    padding-left: 22px;
    margin-bottom: 0.7rem;
}

.agreement-card li {
    margin-bottom: 0.3rem;
}

.agreement-date {
    color: #888;
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 992px) {
    .agreement-layout {
        flex-direction: column;
        align-items: stretch;
        padding: 100px 0;
    }
    .agreement-sidebar {
        flex-direction: row;
        min-width: 0;
        max-width: 100vw;
        width: 100%;
        margin: 0 0 18px 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(60, 60, 120, 0.08);
        padding: 1rem 0.5rem;
        gap: 10px;
        justify-content: center;
        align-items: center;
        position: static;
        top: unset;
    }
    .agreement-sidebar h3 {
        display: none;
    }
    .agreement-sidebar a {
        margin-bottom: 0;
        padding: 8px 10px;
        font-size: 0.98rem;
    }
    .agreement-main {
        max-width: 100vw;
    }
}
